Description
Type dictConcrete = typeof(Dictionary<int, int>);
Type[] concreteNestedTypes = dictConcrete.GetNestedTypes(BindingFlags.Public | BindingFlags.NonPublic);
foreach (var type in concreteNestedTypes)
{
Console.WriteLine($"nestedType {type}");
}
the code show print different between coreclr and mono:
coreclr:
nestedType System.Collections.Generic.Dictionary`2+Entry[System.Int32,System.Int32]
nestedType System.Collections.Generic.Dictionary`2+Enumerator[System.Int32,System.Int32]
nestedType System.Collections.Generic.Dictionary`2+KeyCollection[System.Int32,System.Int32]
nestedType System.Collections.Generic.Dictionary`2+ValueCollection[System.Int32,System.Int32]
nestedType System.Collections.Generic.Dictionary`2+KeyCollection+Enumerator[System.Int32,System.Int32]
nestedType System.Collections.Generic.Dictionary`2+ValueCollection+Enumerator[System.Int32,System.Int32]
mono:
nestedType System.Collections.Generic.Dictionary`2+Entry
nestedType System.Collections.Generic.Dictionary`2+Enumerator
nestedType System.Collections.Generic.Dictionary`2+KeyCollection
nestedType System.Collections.Generic.Dictionary`2+ValueCollection
...
Reproduction Steps
it is easy reproducted
Expected behavior
work correctly with coreclr
Actual behavior
wrong behaviour
Regression?
No response
Known Workarounds
No response
Configuration
No response
Other information
No response
Description
the code show print different between coreclr and mono:
coreclr:
mono:
Reproduction Steps
it is easy reproducted
Expected behavior
work correctly with coreclr
Actual behavior
wrong behaviour
Regression?
No response
Known Workarounds
No response
Configuration
No response
Other information
No response