[Mono-bugs] [Bug 34810][Wis] New - Type.GetType( Fully-Qualified Class Name) Not Working
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
1 Dec 2002 09:33:45 -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 danmorg@sc.rr.com.
http://bugzilla.ximian.com/show_bug.cgi?id=34810
--- shadow/34810 Sun Dec 1 04:33:45 2002
+++ shadow/34810.tmp.10082 Sun Dec 1 04:33:45 2002
@@ -0,0 +1,57 @@
+Bug#: 34810
+Product: Mono/Class Libraries
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: danmorg@sc.rr.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Type.GetType( Fully-Qualified Class Name) Not Working
+
+Description of Problem:
+Type.GetType("TopNamespace.SubNameSpace.ContainingClass,MyAssembly")
+does not work. It returns a null.
+
+Steps to reproduce the problem:
+1. Compile the C# program and run
+2.
+3.
+
+Actual Results:
+type is null
+
+Expected Results:
+type is not null
+
+How often does this happen?
+consistently
+
+Additional Information:
+It works on .NET, but not mono.
+
+I have a test case below:
+
+// testGetType.cs - test
+// Type.GetType("TopNamespace.SubNameSpace.ContainingClass,MyAssembly")
+using System;
+
+class TestGetType {
+ public static void Main(string[] args) {
+ Type type = Type.GetType
+("Mono.Data.ProviderFactory,Mono.Data");
+ if(type == null)
+ Console.WriteLine("type is null");
+ else
+ Console.WriteLine("type is not null");
+
+ object obj = Activator.CreateInstance(type);
+ }
+}