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

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 ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the right type to use for boolean values in c? Is there a standard type?

1056


How the c program is executed?

1194


Explain what happens if you free a pointer twice?

1134


find the value of y y = 1.5x+3 for x<=2 y = 2x+5 for x>2

2045


What does the format %10.2 mean when included in a printf statement?

1706


What is wild pointer in c with example?

1108


Can we use visual studio for c?

1151


Why static is used in c?

1144


Explain what are the different file extensions involved when programming in c?

1155


What is a node in c?

1018


Is swift based on c?

1148


please explain every phase in the "SDLC" in the dotnet.

2667


What is the use of static variable in c?

1140


What is a struct c#?

1097


Is there a way to compare two structure variables?

1169