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
Explain how can you check to see whether a symbol is defined?
What is the argument of a function in c?
i have to apply for the rbi for the post of officers. i need to know abt the entrance questions whether it may be aps or techinical....
What is assignment operator?
What are the different types of C instructions?
How is null defined in c?
Why do we use int main?
How can I read in an object file and jump to locations in it?
Explain pointers in c programming?
What is the purpose of 'register' keyword?
Explain what is the benefit of using an enum rather than a #define constant?
What are the complete rules for header file searching?
Can we access array using pointer in c language?
Can you define which header file to include at compile time?
How do you override a defined macro?