Is int (aka Int32
) an object , or a primitive in .NET (I\'m not asking regarding int?
)?
I hit F12 on the saved word int
and g
The primitive types are the one identified through keywords, so yes int is a primitive type.
The primitive types also allow you to use that as literals.
However, the underlying type that the keyword identifies is System.Int32 which is not a primitive types. This is a value type, not a reference type (or object).