c# get the type of an object and use it in some object code example
Example 1: c# get type of object
//Exact runtime type of the current instance.
object.GetType();
Example 2: how to find the type of a object c#
use the "is" keyword
//Exact runtime type of the current instance.
object.GetType();
use the "is" keyword