Tuesday, August 23, 2011

get an object's name with reflection

Get the name of an object including the strongly-typed dot dot dot path with reflection:

string whatever = typeof(Foo).ToString();

No comments:

Post a Comment