What is the difference between TypeOf and GetType?
Answer Posted / saurabh
TypeOf(): It is an operator, which used to find the type of known type at the time of compilation of the program. It depends on the class or type and cannot pass the object or instance of the class as a parameter to the TypeOf() operator.
GetType(): This is the method, using this method we can obtain the type of the object or the type of instance of the class. To call this method we need an object or an instance of a class.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is an example of a delegate?
What are the differences between a class and a struct?
What is super class in c#?
What are the Types of configuration files and their differences
Explain how to implement an object pool in c#.net
In which situation(s), the use of "Delegate" is a good idea?
Illustrate serialization?
What is local function?
What are the different types of delegates?
What is satellite assembly? And steps to create satellite assembly?
What are managed providers?
What is an array class?
What is concrete class in c# with example?
What is the advantage of singleton class?
What is the use of static members with example using c#.net.