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
What's the difference between constant char *p and char * constant p?
Explain the use of 'auto' keyword
Explain the difference between call by value and call by reference in c language?
What is meant by preprocessor in c?
Write a program to input the price of 1 burger and the number of burgers eaten by a group of friends .print the total amount to be paid by the group?
What are the types of arrays in c?
how can f be used for both float and double arguments in printf? Are not they different types?
Explain high-order bytes.
Why is python slower than c?
how to create duplicate link list using C???
What does main () mean in c?
What do the functions atoi(), itoa() and gcvt() do?
Why c is called procedure oriented language?
What is nested structure in c?
Implement bit Array in C.