c# how to get class type from a object code example Example: c# get type of class Type tp = value.GetType();