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 is the difference between an integer and int?

967


What does dbml stand for?

1097


Explain the difference between the debug class and trace class?

943


Can you change the value of a constant filed after its declaration?

1005


Distinguish between the Debug class and Trace class with its functionality?

1045


Is dictionary reference type c#?

880


List the two important objects of ado.net and also list the namespaces that are commonly used in ado.net to aid in connection to a database.

958


Explain code compilation in c#.

1013


How do switch statements work?

959


How does bubble sort work?

955


Explain 'structure padding'?

1177


What is an escape sequence in c#?

1017


Why do we need interfaces in c#?

953


What does static mean in c sharp?

1124


Is it possible to have a static indexer in c#?

1023