C# Value types and Reference types

C# Value Types directly hold the value — for example, All Basic Types, Structures, and Enum. However, C# Reference Types contain the reference to the value on the Heap — for example, String, Object, Class, Array, Delegates. C# Value types and Reference types Types of memory allocated to a variable: Before moving on to the … Read more