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

Is there sort function in c?

1023


What are actual arguments?

1102


What is the use of the function in c?

1019


What the different types of arrays in c?

1073


The process of repeatedly running a set of computer instructions until some condition is specifed a) condition b) sequential condition c) global d) iteration

1103


Write a program to find factorial of a number using recursive function.

1126


Why structure is used in c?

1194


What is a buffer in c?

1008


How can I find out the size of a file, prior to reading it in?

1180


What does int main () mean?

1032


What are the two types of functions in c?

1017


write an algorithm to display a square matrix.

2714


What is a ternary operator in c?

1127


What are the types of bitwise operator?

1117


What does typedef struct mean?

1117