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

Is namespace a class?

886


How is a string immutable?

919


How many types of collections are there in c#?

896


Does a loop recorder have to be removed?

1036


What are mutable and immutable types in c#?

963


What is the difference between new and override in c#?

1003


What is system console writeline in c#?

1040


Is a games console a computer?

931


write a program to find the biggest palindrome in the given string

964


Define delegate in c#?

929


What is the difference between dictionary and hashtable in c#?

907


What is the role of the datareader class in ado.net connections?

910


What is array and its types in c#?

935


What is the diff between the System.Array.CopyTo() and System.Array.Clone()?

994


What is transparent caching with aop ?

1099