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 sort algorithm does c# use?
How do you pass reference parameters in c#?
What is null propagation c#?
What is a multicast c# delegate?
Explain about multithreading?
Explain the difference between Metadata and Manifest
If you donot specify an access modifier for a method, what is the default access modifier?
What is the value which is accepted by all data types ?
Explain lock, monitors, and mutex object in threading.
What is an assembly loader?
Is void a class?
Why do I get a syntax error when trying to declare a variable called checked?
What language do desktop applications use?
Why cannot you specify the accessibility modifier for methods inside the interface?
Is c# difficult to learn?