ソースを参照

2005-10-04 Martin Baulig <[email protected]>

	* MonoGenericClass.cs (MonoGenericClass.GetParentType): Changed
	return type from `MonoGenericClass to `Type'.


svn path=/trunk/mcs/; revision=51191
Martin Baulig 20 年 前
コミット
52eb674cd4

+ 5 - 0
mcs/class/corlib/System.Reflection/ChangeLog

@@ -1,3 +1,8 @@
+2005-10-04  Martin Baulig  <[email protected]>
+
+	* MonoGenericClass.cs (MonoGenericClass.GetParentType): Changed
+	return type from `MonoGenericClass to `Type'.
+
 2005-09-26  Carlos Alberto Cortez <[email protected]>
 
 	* AssemblyName.cs: Add ParseName internal call, to parse

+ 3 - 3
mcs/class/corlib/System.Reflection/MonoGenericClass.cs

@@ -96,7 +96,7 @@ namespace System.Reflection
 			if (initialized)
 				return;
 
-			MonoGenericClass parent = GetParentType ();
+			MonoGenericClass parent = GetParentType () as MonoGenericClass;
 			if (parent != null)
 				parent.initialize ();
 
@@ -110,14 +110,14 @@ namespace System.Reflection
 		}
 
 		[MethodImplAttribute(MethodImplOptions.InternalCall)]
-		protected extern MonoGenericClass GetParentType ();
+		protected extern Type GetParentType ();
 
 		[MethodImplAttribute(MethodImplOptions.InternalCall)]
 		protected extern MonoGenericClass[] GetInterfaces_internal ();
 
 		public override Type BaseType {
 			get {
-				MonoGenericClass parent = GetParentType ();
+				Type parent = GetParentType ();
 				return parent != null ? parent : generic_type.BaseType;
 			}
 		}