diff options
author | Ryan Lucia <rylucia@microsoft.com> | 2020-01-09 01:02:25 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-09 01:02:25 +0300 |
commit | 9fd95db929a8adb9e4d41887eea77af704a1fca4 (patch) | |
tree | 5679737b6c40fa21a330789376f9cad7613bbef4 /mcs | |
parent | 1178ab3a1a48dbc831ecd905a7d88bfd417e0d73 (diff) |
[reflection] Fix check for Type.FullName to match CoreCLR (#18385)
Updated test to follow in dotnet/runtime
Diffstat (limited to 'mcs')
-rw-r--r-- | mcs/class/corlib/ReferenceSources/RuntimeType.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mcs/class/corlib/ReferenceSources/RuntimeType.cs b/mcs/class/corlib/ReferenceSources/RuntimeType.cs index d5c1be19511..9363dfca9ba 100644 --- a/mcs/class/corlib/ReferenceSources/RuntimeType.cs +++ b/mcs/class/corlib/ReferenceSources/RuntimeType.cs @@ -820,8 +820,9 @@ namespace System public override string FullName { get { - // https://bugzilla.xamarin.com/show_bug.cgi?id=57938 - if (IsGenericType && ContainsGenericParameters && !IsGenericTypeDefinition) + // See https://github.com/mono/mono/issues/18180 and + // https://github.com/dotnet/runtime/blob/f23e2796ab5f6fea71c9fdacac024822280253db/src/coreclr/src/System.Private.CoreLib/src/System/RuntimeType.CoreCLR.cs#L1468-L1472 + if (ContainsGenericParameters && !GetRootElementType().IsGenericTypeDefinition) return null; string fullName; |