What is the difference between typeof(foo) and myFoo.GetType()?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / 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 |
What are multibyte characters?
What do you mean by dynamic memory allocation in c?
How can we allocate array or structure bigger than 64kb?
to find out the reverse digit of a given number
6 Answers Infosys, Microsoft, TCS, Wipro,
Give a fast way to multiply a number by 7
15 Answers Accenture, Aricent, Microsoft,
Why we use conio h in c?
i want to have a program to read a string and print the frequency of each character and it should work in turbo c
In a byte, what is the maximum decimal number that you can accommodate?
how to introdu5ce my self in serco
Explain how can you tell whether two strings are the same?
When can you use a pointer with a function?
What is keyword in c?