TypeOf:- is an operator to obtain a type known at compile-time (or at least a generic type parameter). The operand of typeof is always the name of a type or type parameter - never an expression with a value (e.g. a variable).
Used to obtain the System.Type object for a type. A typeof expression takes the following form:
System.Type type = typeof(int);
GetType():-GetType() is a method you call on individual objects, to get the execution-time type of the object.
Gets the Type of the current instance.
The exact runtime type of the current instance.
int i = 0;
System.Type type = i.GetType();