diff options
author | Katelyn Gadd <kg@luminance.org> | 2017-11-04 07:15:28 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2017-11-04 07:15:28 +0300 |
commit | dc023c2fe04ea3a6710abfe1aed6475544ab7be8 (patch) | |
tree | 9c91fe15bb6a82cbebc793fa0394995d4a8ea027 /mcs/class/corlib/ReferenceSources | |
parent | f6e21efe14f04c9d0736efe7f02ff062ff17de14 (diff) |
Fix bug 57938 - FullName not returning null for certain generic types (#5920)
Diffstat (limited to 'mcs/class/corlib/ReferenceSources')
-rw-r--r-- | mcs/class/corlib/ReferenceSources/RuntimeType.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mcs/class/corlib/ReferenceSources/RuntimeType.cs b/mcs/class/corlib/ReferenceSources/RuntimeType.cs index d124a93f256..c080d4ed80b 100644 --- a/mcs/class/corlib/ReferenceSources/RuntimeType.cs +++ b/mcs/class/corlib/ReferenceSources/RuntimeType.cs @@ -783,6 +783,10 @@ namespace System public override string FullName { get { + // https://bugzilla.xamarin.com/show_bug.cgi?id=57938 + if (IsGenericType && ContainsGenericParameters && !IsGenericTypeDefinition) + return null; + string fullName; // This doesn't need locking if (type_info == null) |