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 |
How to throw some light on the b tree?
Given a valid 24 hour format time find the combination of the value and write a program ,do not hard the value and if any other inputs provided should work with the logic implemented Input: 11:30 Output: 13:10 Input: 18:25 Output: 21:58
what are the languages used in c#?
Explain what is gets() function?
How to convert a binary number to Hexa decimal number?? (Note:Do not convert it into binary and to Hexadecimal)
Do character constants represent numerical values?
When should I declare a function?
Write a program that takes a 5 digit number and calculates 2 power that number and prints it
Should a function contain a return statement if it does not return a value?
Famous puzzles which are generally asked by companies during interviews ?
What are multidimensional arrays?
is it possible to change the default calling convention in c ?