Value types in C#
It's the type of memory in C#. It stores both datatype and value. For instance
int a=5;
It will be stored as
_____
a |int|5|
______
Examples to value types
1.All int data types
2.bool
3. Enum
4. Struct
Value types are available in both heap and stack.
Comments
Post a Comment