Type of() Operator gets the System.Type object of a type. which is used to get a type at the compile-time.
Syntax :
System.Type type = typeof(type);
i.e type means data type(int, string, bool, etc).
The operand of typeof operator is always a type of parameter or name of the type. It does not contain the variable.
Syntax :
System.Type type = typeof(type);
i.e type means data type(int, string, bool, etc).
The operand of typeof operator is always a type of parameter or name of the type. It does not contain the variable.