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
Is there sort function in c?
What are actual arguments?
What is the use of the function in c?
What the different types of arrays in c?
The process of repeatedly running a set of computer instructions until some condition is specifed a) condition b) sequential condition c) global d) iteration
Write a program to find factorial of a number using recursive function.
Why structure is used in c?
What is a buffer in c?
How can I find out the size of a file, prior to reading it in?
What does int main () mean?
What are the two types of functions in c?
write an algorithm to display a square matrix.
What is a ternary operator in c?
What are the types of bitwise operator?
What does typedef struct mean?