Merge branch 'BigIntegerParse'
[mono.git] / mcs / class / corlib / System / Type.cs
index a45c3948878e5cf5c9cfc0ff2d04c3bc7ef6a8e3..ec55040bec7b2681c9b838062597d84cd6b4d84b 100644 (file)
@@ -1431,6 +1431,17 @@ namespace System {
                        return FullName;
                }
 
+               internal static bool ShouldPrintFullName (Type type)
+               {
+                       while (type.HasElementType)
+                               type = type.GetElementType ();
+
+                       if (type == typeof (void) || type.IsNested)
+                               return false;
+
+                       return !type.IsPrimitive;
+               }
+
                internal virtual Type InternalResolve ()
                {
                        return UnderlyingSystemType;