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(foo) and myFoo.GetType()?

Answer Posted / enso

Operator typeof(foo) is used to obtain the System.Type
object for a type at compile time.

myFoo.GetType() is used to obtain the exact run time type of
an object. This method uses reflection.

Is This Answer Correct ?    11 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is a house a shell structure?

1108


Difference between Shallow copy and Deep copy?

1969


Differentiate between calloc and malloc.

1223


What is #include cctype?

1076


Explain what does the function toupper() do?

1006


How can I split up a string into whitespace-separated fields?

1005


How many parameters should a function have?

1127


What’s a signal? Explain what do I use signals for?

1053


What are the back slash character constants or escape sequence charactersavailable in c?

1124


Do you know null pointer?

975


What is the sizeof () a pointer?

925


how do you programme Carrier Sense Multiple Access

1926


How do I create a directory? How do I remove a directory (and its contents)?

1098


Can variables be declared anywhere in c?

1036


Explain how can I right-justify a string?

992