From: Ryan Lucia Date: Wed, 8 Jan 2020 22:02:25 +0000 (-0500) Subject: [reflection] Fix check for Type.FullName to match CoreCLR (mono/mono#18385) X-Git-Tag: submit/tizen/20210909.063632~10331^2~5^2~36 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=de9940508641c9ddee7c8754e950004485743f3b;p=platform%2Fupstream%2Fdotnet%2Fruntime.git [reflection] Fix check for Type.FullName to match CoreCLR (mono/mono#18385) Updated test to follow in dotnet/runtime Commit migrated from https://github.com/mono/mono/commit/9fd95db929a8adb9e4d41887eea77af704a1fca4 --- diff --git a/src/mono/netcore/System.Private.CoreLib/src/System/RuntimeType.Mono.cs b/src/mono/netcore/System.Private.CoreLib/src/System/RuntimeType.Mono.cs index e353629..e7a2bf5 100644 --- a/src/mono/netcore/System.Private.CoreLib/src/System/RuntimeType.Mono.cs +++ b/src/mono/netcore/System.Private.CoreLib/src/System/RuntimeType.Mono.cs @@ -2485,8 +2485,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;