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
Please explain value types and reference types used in c#?
How does bitwise xor work?
Where do we use serialization in c#?
What is distribute by in hive?
What is the use of readkey in c#?
What is a helper method in c#?
What is an example of a delegate?
What are data types with examples?
What does the dispose method do with the connection object?
What is generic delegates in c#?
Why do I get a "cs5001: does not have an entry point defined" error when compiling?
What is an assembly qualified name
What is private constructor c#?
Is c# still popular?
Hi to all..I have to create an intranet application on C#.NET windows Application so please please let can you people help me as iam new in .NET and if u have any samples or website address from where i can get sample please let know.