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 a char in c?
In which layer of the network datastructure format change is done
Is there a way to switch on strings?
What is the difference between declaring a variable and defining a variable?
What are 'near' and 'far' pointers?
How can I generate floating-point random numbers?
What is volatile variable how do you declare it?
Explain how are 16- and 32-bit numbers stored?
write a program that will open the file, count the number of occurences of each word in the the complete works of shakespeare. You will then tabulate this information in another file.
what is the role you expect in software industry?
What is a node in c?
the factorial of non-negative integer n is written n! and is defined as follows: n!=n*(n-1)*(n-2)........1(for values of n greater than or equal to 1 and n!=1(for n=0) Perform the following 1.write a c program that reads a non-negative integer and computes and prints its factorial. 2. write a C program that estimates the value of the mathematical constant e by using the formula: e=1+1/!+1/2!+1/3!+.... 3. write a c program the computes the value ex by using the formula ex=1+x/1!+xsquare/2!+xcube/3!+....
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?
What do mean by network ?
What does the error message "DGROUP exceeds 64K" mean?