get type of variable c#

C#
string a = "This is a string";
Console.WriteLine(a.GetType())use the "is" keyword

Source

Also in C#: