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 is an int c#?
What is hashtable in c# net with example?
What is args c#?
Does google use c#?
What is null in database?
What is the difference between a class and an object c#?
What is JIT (just in time)? how it works?
What are the examples of data types?
Is versioning applicable to private assemblies?
What do you mean by object pooling?
What is the difference between integer and double?
What is the wildcard character in sql?
What namespace is list in c#?
the c# keyword .int. Maps to which .net type?
What is parameter c#?