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
What is || operator and how does it function in a program?
where are auto variables stored? What are the characteristics of an auto variable?
Can we declare variables anywhere in c?
please help me..... please codes and flowchart plz turbo c lang po yan.....please asap response... 3. Make an astrology program. The user types in his or her birthday (month, day, and year as integer), and the program responds with the user’s zodiac sign, horoscope, and other information related to it. If the user’s birth year falls into a leap year, your program should display an appropriate message for it. NOTES: Conditional Statements: it should be with graphics
Do array subscripts always start with zero?
How is a macro different from a function?
What are pointers?
What does main () mean in c?
Explain what is meant by high-order and low-order bytes?
What is d scanf?
Tell me can the size of an array be declared at runtime?
What is a null string in c?
What is the most efficient way to store flag values?
Write a program to check prime number in c programming?
how to make a scientific calculater ?