how to get type of class in c# code example
Example 1: get type of variable c#
string a = "This is a string";
Console.WriteLine(a.GetType())
Example 2: c# get type of class
Type tp = value.GetType();
string a = "This is a string";
Console.WriteLine(a.GetType())
Type tp = value.GetType();