T
Tony Johansson
Hello!
If I have string name = "Mytest";
and
Type test1 = Type.GetType(name);
and
Type test2 = name.GetType();
then the first one will assign null to test1
but the second test2 will be given the correct type which is System.String
Now to my question why will test1 be assign null I would assume that
System.String would be assigned
because name is of that type
//Tony
If I have string name = "Mytest";
and
Type test1 = Type.GetType(name);
and
Type test2 = name.GetType();
then the first one will assign null to test1
but the second test2 will be given the correct type which is System.String
Now to my question why will test1 be assign null I would assume that
System.String would be assigned
because name is of that type
//Tony