Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


What is the difference between typeof(foo) and myFoo.GetType()?

Answers were Sorted based on User's Feedback



What is the difference between typeof(foo) and myFoo.GetType()?..

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

What is the difference between typeof(foo) and myFoo.GetType()?..

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

Post New Answer

More C Interview Questions

to find out the reverse digit of a given number

6 Answers   Infosys, Microsoft, TCS, Wipro,


Explain union.

0 Answers  


Switch (i) i=1; case 1 i++; case 2 ++i; break; case 3 --i; Output of i after executing the program

5 Answers   Mascot,


what is mean by Garbage collection ? Please answer me. Advance thanks.

4 Answers   Excel,


Explain what is the difference between functions getch() and getche()?

0 Answers  






Write a program to print "hello world" without using a semicolon?

0 Answers  


What is null pointer constant?

0 Answers  


any restrictions have on the number of 'return' statements that may be present in a function. a) no restriction b) only 2 return statements c) only 1 return statements d) none of the above

0 Answers  


Explain what’s a signal? Explain what do I use signals for?

0 Answers  


WRITE A PROGRAM TO MERGE TWO SORTED ARRAY USING MERGE SORT TECHNIQUE..

0 Answers  


Explain the importance and use of each component of this string: Foo.Bar, Version=2.0.205.0, Culture=neutral, PublicKeyToken=593777ae2d274679d

1 Answers   TCS,


write a program to find the given number is prime or not

2 Answers   Accenture, Vasutech,






Categories