valuetype
A valuetype is a category of types in programming where instances store their data directly, rather than as references to separate heap-allocated objects. In languages that distinguish value types from reference types, operations on valuetypes typically copy the entire value, giving each variable its own independent data.
In the .NET ecosystem, value types are implemented as structs or enums and derive from System.ValueType. They
Common examples include primitive numeric types such as int and double, booleans, and user-defined types declared
Advantages of valuetypes include predictable memory usage and copying semantics, which can reduce the overhead of
In metadata terms, the Common Language Infrastructure signals value types with the valuetype designation in type