2002-08-21 Dietmar Maurer <dietmar@ximian.com>
[mono.git] / mcs / class / corlib / System / MonoType.cs
index 23a9086b61c822b3aaebdc6f627422b17052e557..5b6199b1401143e3a054b06f105fceb1e95c72dc 100644 (file)
@@ -19,6 +19,7 @@ namespace System
                public string name_space;
                public Type parent;
                public Type etype;
+               public Type nested_in;
                public Assembly assembly;
                public TypeAttributes attrs;
                public int rank;
@@ -260,7 +261,7 @@ namespace System
 
                public override string AssemblyQualifiedName {
                        get {
-                               return getFullName () + "," + Assembly.ToString ();
+                               return getFullName () + ", " + Assembly.ToString ();
                        }
                }
 
@@ -330,9 +331,19 @@ namespace System
                        }
                }
 
+               public override Type DeclaringType {
+                       get {
+                               MonoTypeInfo info;
+                               get_type_info (_impl, out info);
+                               return info.nested_in;
+                       }
+               }
+
                public override Type ReflectedType {
                        get {
-                               return null;
+                               MonoTypeInfo info;
+                               get_type_info (_impl, out info);
+                               return info.nested_in;
                        }
                }