Read-Only Structs: C# 7.2

added by DotNetKicks
3/29/2018 1:22:09 PM

2 Kicks, 347 Views

C# supports two basic types : Value Type and Reference Type. The main difference between them where they get created: Value Types gets created in stack while Reference type in Heap. Other key difference, for ValueType whenever a parameter is passed as an argument, a copy gets created and passed while for reference types, refernce...