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
Which is the best language for desktop application?
Explain the Abstract class in c#.net
What are data types examples?
Is null == null c#?
Differentiate between static class and singleton instance?
Compare and contrast between the System.Array.CopyTo() and Clone()?
What is the difference between method and function in c#?
what is the Difference between the public and private ?
What does console writeline do?
What is value c#?
Do loops in c#?
What is argument in c#?
Explain “static” keyword in c#?
What is the difference between delegates and events in c#?
How many types of namespaces available in version4?