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
Is inheritance possible in c sharp?
Can we have 2 main methods in c#?
What is generic delegate in c#?
What is indexer c#?
what is a static constructor?
What is a copy constructor in c#?
What is difference between float and integer?
Which class does the remote object has to inherit?
What is difference between sleep () and wait ()?
What is the difference between virtual method and abstract method?
Why do we need indexers in c#?
Define the term immutable ?
What's c# ?
What is dictionary class in c#?
Define c# delegate?