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
What are native methods?
How do I create a multilanguage?
What is the compiler of c#?
Can abstract class have constructor c#?
What is the difference between delegates and superdelegates?
What is the difference between a field and a property in c#?
What is file extension of webservices?
What are satellite assemblies? How will you get the different language strings?
What is the difference between finally and finalize block?
What is c# best for?
What is difference between const and static in c#?
What is c-sharp (c#)?
How do I join one form to another in c#?
What are data types examples?
What is view state c#?