A
audipen
I have a problem with System.Type.GetType method.
If you try out the following code in C# console app ..
System.Type t = System.Type.GetType("System.DateTime");
System.Type t1 = System.Type.GetType("DateTime");
t is set to the appropriate Type object
but the second call returns null (when I dont specify the namespace
name)
The documentation mentions that the current assembly and Mscorlib.dll
is searched...but I dont think that 'Mscorlib.dll' is being searched.
Any help would be highly appreciated.
Thanks,
Ady
If you try out the following code in C# console app ..
System.Type t = System.Type.GetType("System.DateTime");
System.Type t1 = System.Type.GetType("DateTime");
t is set to the appropriate Type object
but the second call returns null (when I dont specify the namespace
name)
The documentation mentions that the current assembly and Mscorlib.dll
is searched...but I dont think that 'Mscorlib.dll' is being searched.
Any help would be highly appreciated.
Thanks,
Ady