What is the difference between TypeOf and GetType?
Answer Posted / avinash reddy r
typeOf is based on a class
Ex: Console.WriteLine(typeof(int))
O/P: System.Int32
GetType is based on a object
string s="Hello World"
Ex: Console.WriteLine(s.GetType())
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
Why use a singleton instead of static methods?
Define multicast delegate? How it be used?
Explain the three test cases in unit testing?
What are extender provider components?
How do I do implement a assert?
What is signature c#?
How can you set image source dynamically from c# application to ”test.png” file?
What is dao in c#?
What is a template class?
What does ienumerable mean?
Do events have return type c#?
Explain About a class access specifiers and method access specifiers.
What is the difference between interface and functional interface?
Explain the types of assemblies in .net?
What are primitive data types in c#?