[Mono-bugs] [Bug 26677][Nor] New - Type.GetType () fails with assembly qualified name.

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
20 Jun 2002 16:50:37 -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 gonzalo@ximian.com.

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

--- shadow/26677	Thu Jun 20 12:50:37 2002
+++ shadow/26677.tmp.28079	Thu Jun 20 12:50:37 2002
@@ -0,0 +1,55 @@
+Bug#: 26677
+Product: Mono/Class Libraries
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: CORLIB
+AssignedTo: lupus@ximian.com                            
+ReportedBy: gonzalo@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Type.GetType () fails with assembly qualified name.
+
+Description of Problem:
+
+Type.GetType (string) does not work when passed an assembly qualified name.
+
+Steps to reproduce the problem:
+
+1. Compile this program and run it with MS and mono.
+using System;
+
+public class myClass
+{
+        public static void Main (string [] args)
+        {
+                Type type = typeof (Int32);
+                Console.WriteLine (type.AssemblyQualifiedName);
+                Console.WriteLine (Type.GetType (type.AssemblyQualifiedName));
+        }
+}
+
+Actual Results:
+
+System.Int32,mscorlib
+...and have to press Ctrl-C to terminate.
+
+Expected Results:
+
+System.Int32, mscorlib, Version=1.0.3300.0, Culture=neutral,
+PublicKeyToken=b77a5c561934e089
+System.Int32
+
+How often does this happen? 
+Always.
+
+
+Additional Information:
+Once this work, i'll commit the changes to make TypeDescriptor independent
+from System.Drawing.