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