Prechádzať zdrojové kódy

2002-09-11 Miguel de Icaza <[email protected]>

	* ModuleBuilder.cs (GetTypes): Implement.

svn path=/trunk/mcs/; revision=7376
Miguel de Icaza 23 rokov pred
rodič
commit
7837ad922c

+ 3 - 0
mcs/class/corlib/System.Reflection.Emit/ChangeLog

@@ -1,3 +1,6 @@
+2002-09-11  Miguel de Icaza  <[email protected]>
+
+	* ModuleBuilder.cs (GetTypes): Implement.
 
 Tue Sep 10 12:12:51 CEST 2002 Paolo Molaro <[email protected]>
 

+ 12 - 0
mcs/class/corlib/System.Reflection.Emit/ModuleBuilder.cs

@@ -290,5 +290,17 @@ namespace System.Reflection.Emit {
 
 			return symbol_writer.DefineDocument (url, language, languageVendor, documentType);
 		}
+
+		public override Type [] GetTypes ()
+		{
+			if (types == null)
+				return new TypeBuilder [0];
+
+			int n = types.Length;
+			TypeBuilder [] copy = new TypeBuilder [n];
+			Array.Copy (types, copy, n);
+
+			return copy;
+		}
 	}
 }