how to get the tipe of variable code example Example: get type of variable c# string a = "This is a string"; Console.WriteLine(a.GetType())