Wednesday, March 24, 2010

Get class of a particular object

Suppose I have an object o.

I can retrieve its class by the function o.GetType().
Extend function further to o.GetType().Name to get the string value.

No comments:

Post a Comment