What does all types are object types mean in .net?

G

Guest

Are all the primitive data types are object types . If not then why do we say that in .net all the types are object types.
 
J

Jon Skeet [C# MVP]

San said:
Are all the primitive data types are object types . If not then why
do we say that in .net all the types are object types.

All types are *not* object types. There are reference types and value
types. However, each value type also has a reference type, an instance
of which is obtained by boxing a value of the value type. See chapter 8
of partition 1 of ECMA 335 for more information.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top