typeof()
typeof keyword takes the Type itself as an argument and returns the underline Type of the argument.
System.Type t1= typeof(Event); // Event is a Type
GetType()
GetType() will return the given variable base data type. It can only be invoked on the instance of the type.
Event event= new Event();
System.Type t2= event.GetType(); // event is an instance of the type Event.
[amazon_link asins=’9351190900,1787287041,9386873583,9351343189,8120349172,007070368X,8120352068,9352136640,B016Z18MLG|1840787198,B016Z18MLG,1491988533,1491987650,1119428114,1484230175,1119449278,1119458684,0985580135′ template=’ProductGrid’ store=’desibanjara22-21|desibanjaraco-21′ marketplace=’IN|UK’ link_id=’23be5044-948b-11e8-b877-0dfd42244dbc’]