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 do you mean by a windows process in regards to memory allocation?
What do you mean by thread safe in c#?
What is ulong in c#?
What are callback methods in c#?
Are constructors inherited c#?
What is null propagation c#?
what is generics? can u explain 5 to 6 examples on generics that covers class,method,structure,list,delegates?
Why constructor is used in c#?
How does aspect oriented programming work?
What is c# entity framework?
What is strong name assembly?
What are circular references?
How can I process command-line arguments?
What is Reflection in .NET? Namespace? How will you load an assembly which is not referenced by current assembly?
What is the .net datatype that allows the retrieval of data by a unique key?