c# gettype of class code example
Example 1: c# get type of object
//Exact runtime type of the current instance.
object.GetType();
Example 2: c# get type of class
Type tp = value.GetType();
//Exact runtime type of the current instance.
object.GetType();
Type tp = value.GetType();