Quantcast
Channel: Visual C# forum
Viewing all articles
Browse latest Browse all 31927

Anyone please explain Object Type in C#

$
0
0

Can someone please explain Object Type in C#?

I was reading a C# Tutorial on http://www.tutorialspoint.com/csharp/csharp_data_types.htm where I was reading about Object Type which is inturn a Reference Type.

I have also gone though the following MSDN link:

http://msdn.microsoft.com/en-us/library/9kkx3h3c%28v=vs.80%29.aspx

Here, it is written : "The object type is an alias for Object in the .NET Framework. In the unified type system of C#, all types, predefined and user-defined, reference types and value types, inherit directly or indirectly from Object. You can assign values of any type to variables of typeobject."

On other site "http://www.dotnetpearls.com/object":, it is written: "Object is the base class for all derived classes. It provides some methods and capabilities."

Now, I am confused. I only know of Object as the instance of any Class so I am unable to understand object in the above context and also, please guide as to why/ in which simple situations we use object type?


http://learn2automate.wordpress.com Vijay Gupta



Viewing all articles
Browse latest Browse all 31927

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>