.NET & C# ยท C#
What are value types and reference types in C#?
Value types contain their data directly and are copied by value, while reference types hold a reference to an object. Structs and enums are value types; classes, arrays, delegates, and strings are reference types.