Author: zoltan
Date: 2007-09-22 19:39:01 -0400 (Sat, 22 Sep 2007)
New Revision: 86225
Modified:
trunk/mcs/class/corlib/System.Reflection.Emit/AssemblyBuilder.cs
trunk/mcs/class/corlib/System.Reflection.Emit/ChangeLog
Log:
2007-09-23 Zoltan Varga <[EMAIL PROTECTED]>
* AssemblyBuilder.cs (GetManifestModule): Return a ModuleBuilder here to
match MS.NET.
Modified: trunk/mcs/class/corlib/System.Reflection.Emit/AssemblyBuilder.cs
===================================================================
--- trunk/mcs/class/corlib/System.Reflection.Emit/AssemblyBuilder.cs
2007-09-22 23:37:08 UTC (rev 86224)
+++ trunk/mcs/class/corlib/System.Reflection.Emit/AssemblyBuilder.cs
2007-09-22 23:39:01 UTC (rev 86225)
@@ -638,6 +638,20 @@
}
#if NET_2_0
+ ModuleBuilder manifest_module;
+
+ //
+ // MS.NET seems to return a ModuleBuilder when
GetManifestModule () is called
+ // on an assemblybuilder.
+ //
+ internal override Module GetManifestModule () {
+ if (manifest_module == null)
+ manifest_module = DefineDynamicModule ("Default
Dynamic Module");
+ return manifest_module;
+ }
+#endif
+
+#if NET_2_0
public
#else
internal
Modified: trunk/mcs/class/corlib/System.Reflection.Emit/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System.Reflection.Emit/ChangeLog 2007-09-22
23:37:08 UTC (rev 86224)
+++ trunk/mcs/class/corlib/System.Reflection.Emit/ChangeLog 2007-09-22
23:39:01 UTC (rev 86225)
@@ -1,3 +1,8 @@
+2007-09-23 Zoltan Varga <[EMAIL PROTECTED]>
+
+ * AssemblyBuilder.cs (GetManifestModule): Return a ModuleBuilder here to
+ match MS.NET.
+
2007-09-22 Gert Driesen <[EMAIL PROTECTED]>
* TypeBuilder.cs: Do not include static methods of base class in
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches