[Mono-bugs] [Bug 30093][Wis] New - typeof(Object).Module.Assembly returns NullReferenceException.

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
10 Sep 2002 08:36:55 -0000


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 duncan@ximian.com.

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

--- shadow/30093	Tue Sep 10 04:36:55 2002
+++ shadow/30093.tmp.643	Tue Sep 10 04:36:55 2002
@@ -0,0 +1,25 @@
+Bug#: 30093
+Product: Mono/Class Libraries
+Version: unspecified
+OS: other
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: duncan@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: typeof(Object).Module.Assembly returns NullReferenceException.
+
+When trying to get access to the mscorlib assembly with this code, it
+throws a NullReferenceException.
+
+//Get the mscorlib assembly, it's the one Object is defined in
+Assembly a = typeof(Object).Module.Assembly;
+
+This is used in the GetType.cs test from the MS quickstart tutorial.