c# get typeof code example
Example 1: c# get type of object
//Exact runtime type of the current instance.
object.GetType();
Example 2: c# get type of class
Type tp = value.GetType();
Example 3: how to find the type of a object c#
use the "is" keyword
Example 4: c# typeof
string s = "Geeks";
Console.WriteLine(s.GetType());