print type of variable C# code example
Example 1: get type of variable c#
string a = "This is a string";
Console.WriteLine(a.GetType())
Example 2: how to find the type of a object c#
use the "is" keyword
string a = "This is a string";
Console.WriteLine(a.GetType())
use the "is" keyword