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 / chirag

GetType is a call that is made at runtime on an instance of
an object.
typeof() is resolved to a call at runtime, but loads the
type from the token
for the type. They probably resolve to the same call, it's
just that
GetType requires an instance. If I didn't need the instance,
I would use
typeof.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the default boolean value in c#?

958


Explain how do I convert a string to an int in c#?

973


What is msil, and why should developers need an appreciation of it if at all?

1054


Is a char?

871


What is collection class c#?

916


How can I create a process that is running a supplied native executable (e.g., Cmd.exe)?

1093


What are the types of comment in c# with examples?

919


Explain the difference between event and a delegate in c#?

968


Does a class need a constructor c#?

912


What is lazy keyword in c#?

909


Explain the importance and use of each, version, culture and publickeytoken for an assembly.

928


Illustrate race condition?

909


What is the Signification of the "new " keyword in C#? example

947


Which of these statements correctly declares a two-dimensional array in c#?

1067


What is difference between string and string builder?

968