GetType() Frage?
-
Hey,
mach ich
string strText ="Hallo"; Type strType = strText.GetType();
stehen mir ja die typeninfos drin.
Mach ich ne eigen klasse:
class foo{ ..... }; foo objTest = new foo(); Type objType = objTest.GetType();
kommt "null" raus?? was mach ich falsch??
-
Dein Beispiel funktioniert und liefert die Typinformationen über die Klasse.