Immutable class vs struct
问题 The following are the only ways classes are different from structs in C# (please correct me if I'm wrong): Class variables are references, while struct variables are values, therefore the entire value of struct is copied in assignments and parameter passes Class variables are pointers stored on stack that point to the memory on heap, while struct variables are on stored heap as values Suppose I have an immutable struct, that is struct with fields that cannot be modified once initialized. Each