Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is the difference between TypeOf and GetType?

Answer Posted / brijen.patel

TypeOf and GetType Produce the same information but the
difference is where they get theis information from;
typeOf is used to get the type based on a class, that means
if you use typeOf with object, it will gives you error. you
must pass class as parameter. Whereas GetType is used to
get the type based on as object (an instance of a class)
means GetType needs parameter of object rather than class name.

Is This Answer Correct ?    18 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the 4 pillars of any object oriented programming language?

824


To catch any possible exception What is the C# syntax written ?

937


How do you pronounce c#?

839


What are events in C#?

940


What is xml serialization in c#?

815


what is inheritance and an example in vb.net and c# of when you might use it?

896


What is difference between ilist and list in c#?

910


Why do we Need of static class in c#?

999


Why do canadians say zed?

956


Is java better than c sharp?

900


What is cts, clr?

786


Can class inherit from struct c#?

920


What does type safe mean in c#?

913


How many types of methods are there in c#?

872


What is datagrid c#?

879