c# type.gettype vs typeof code example Example: c# get type of object //Exact runtime type of the current instance. object.GetType();