Merge pull request #3066 from alexanderkyte/pedump_sgen
[mono.git] / mcs / class / corlib / System / RuntimeTypeHandle.cs
index 64c1cb7083ef4647cc737c65a9a15a58b7167e81..eb6c42f097648ff77d290c66f24e2a600768da87 100644 (file)
@@ -62,7 +62,7 @@ namespace System
                        if (info == null)
                                throw new ArgumentNullException ("info");
 
-                       MonoType mt = ((MonoType) info.GetValue ("TypeObj", typeof (MonoType)));
+                       RuntimeType mt = ((RuntimeType) info.GetValue ("TypeObj", typeof (RuntimeType)));
                        value = mt.TypeHandle.Value;
                        if (value == IntPtr.Zero)
                                throw new SerializationException (Locale.GetText ("Insufficient state."));
@@ -82,7 +82,7 @@ namespace System
                        if (value == IntPtr.Zero)
                                throw new SerializationException ("Object fields may not be properly initialized");
 
-                       info.AddValue ("TypeObj", Type.GetTypeHandle (this), typeof (MonoType));
+                       info.AddValue ("TypeObj", Type.GetTypeHandle (this), typeof (RuntimeType));
                }
 
                [ReliabilityContractAttribute (Consistency.WillNotCorruptState, Cer.Success)]
@@ -210,11 +210,6 @@ namespace System
                        return IsArray (type) && type.GetArrayRank () == 1;
                }
 
-               internal static bool IsVisible (RuntimeType type)
-               {
-                       return type.IsPublic;
-               }
-
                internal static bool IsInterface (RuntimeType type)
                {
                        return (type.Attributes & TypeAttributes.ClassSemanticsMask) == TypeAttributes.Interface;