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
Explain how are portions of a program disabled in demo versions?
How to write a program for machine which is connected with server for that server automatically wants to catch the time for user of that machine?
How can you read a directory in a C program?
Function which gives a pointer to a binary trees const an integer value at each code, return function of all the nodes in binary tree.?
I need a sort of an approximate strcmp routine?
Can an array be an Ivalue?
Explain how are 16- and 32-bit numbers stored?
Explain the term printf() and scanf() used in c language?
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
What is data structure in c and its types?
Mention four important string handling functions in c languages .
How do you use a pointer to a function?
Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10
What is the difference between specifying a constant variable like with constant keyword and #define it? i.e what is the difference between CONSTANT FLOAT A=1.25 and #define A 1.25
Are enumerations really portable?