Wednesday, 26 February 2014

Get type information of any object using GetType( )

object obj = new object();
obj.GetType();

string s;
s.GetType();

List<string> StringList = new List<string>();
StringList.GetType();


No comments:

Post a Comment