June 27, 2020
What Does It Mean to Pass a Reference Type Variable by Reference?
Value and Reference Types Before we get to the answer, let’s review the two basic types in .NET: value types and reference types. Variables of value types directly contain their data according to the Microsoft docs. If you assign one value type variable to another, the .NET runtime will make a copy of its data. Operations on one variable will not affect another (with one exception as we’ll see). Value types are defined as structures or enumerations, and examples include the .
Read more