c# get class type code example
Example 1: c# get class name by type
typeof(T).Name // class name, no namespace
typeof(T).FullName // namespace and class name
typeof(T).Namespace // namespace, no class name
Example 2: c# get type of class
Type tp = value.GetType();
Example 3: how to find the type of a object c#
use the "is" keyword