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
Is c# substring zero based?
What is verbatim string?
Why dependency injection is used in c#?
Is a dll an assembly?
How do you escape in c#?
State two different types of access modifiers.
What is difference between Trace and Debug
Define constructors
Explain what is the smallest unit of execution in .net?
What is hashtable in c# with example?
What is c# most used for?
How do I make a dll in c#?
What is the use of getcommandlineargs() method in c#.net?
What is single dimensional array in c#?
What is executescalar in c#?