[Mono-bugs] [Bug 55247][Nor] Changed - Mono Fails to Throw Exceptions in TypeBuilder but .NET does

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sat, 6 Mar 2004 05:21:06 -0500 (EST)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by mathpup@mylinuxisp.com.

http://bugzilla.ximian.com/show_bug.cgi?id=55247

--- shadow/55247	2004-03-06 03:47:46.000000000 -0500
+++ shadow/55247.tmp.26294	2004-03-06 05:21:05.000000000 -0500
@@ -1,14 +1,14 @@
 Bug#: 55247
 Product: Mono: Class Libraries
 Version: unspecified
-OS: 
+OS: unknown
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Normal
 Component: CORLIB
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: mathpup@mylinuxisp.com               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
@@ -56,6 +56,38 @@
 How often does this happen?  
  
 Always 
  
  
 Additional Information:
+
+------- Additional Comments From mathpup@mylinuxisp.com  2004-03-06 05:21 -------
+tb.cs: 
+ 
+using System; 
+using System.Threading; 
+using System.Reflection; 
+using System.Reflection.Emit; 
+ 
+ 
+class Testing 
+{ 
+    public static void Main() 
+    { 
+       AssemblyName myAsmName = new AssemblyName(); 
+       myAsmName.Name = "Assembly"; 
+       AssemblyBuilder asmBuilder = 
+Thread.GetDomain().DefineDynamicAssembly( 
+           myAsmName, AssemblyBuilderAccess.Run); 
+       ModuleBuilder modBuilder = 
+asmBuilder.DefineDynamicModule("MyModule"); 
+       TypeBuilder typeBuilder = modBuilder.DefineType("MyType"); 
+ 
+       Type t = modBuilder.GetType("MyType"); 
+ 
+       Console.WriteLine( t.Name ); 
+ 
+        foreach ( MethodInfo m in t.GetMethods() ) 
+            Console.WriteLine( m.Name ); 
+     } 
+} 
+