Value types are mostly built in types such as numeric, char, bool etc. which are derived from System.ValueType (derived from System.Object).
Value types have very special behavior in the CLR.
Example for custom value types are structs and enum types.
C# memory does not allocate any separate block of memory to the value types such as heap.
Asked In: Spotted While Learning |