check type c# is typeof code example Example: c# typeof string s = "Geeks"; Console.WriteLine(s.GetType());