What you understand by Value types and Reference types in C#.Net?

Technology CommunityCategory: C#What you understand by Value types and Reference types in C#.Net?
VietMX Staff asked 4 years ago

In C# data types can be of two types: Value Types and Reference Types. Value type variables contain their object (or data) directly. If we copy one value type variable to another then we are actually making a copy of the object for the second variable. Value Type member will located into Stack and reference member will located in Heap always.