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

  • Thread starter Thread starter Guest
  • Start date Start date
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.
 
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.
 
Back
Top