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
Is a house a shell structure?
Difference between Shallow copy and Deep copy?
Differentiate between calloc and malloc.
What is #include cctype?
Explain what does the function toupper() do?
How can I split up a string into whitespace-separated fields?
How many parameters should a function have?
What’s a signal? Explain what do I use signals for?
What are the back slash character constants or escape sequence charactersavailable in c?
Do you know null pointer?
What is the sizeof () a pointer?
how do you programme Carrier Sense Multiple Access
How do I create a directory? How do I remove a directory (and its contents)?
Can variables be declared anywhere in c?
Explain how can I right-justify a string?