❔ Generally, how do you implement a readonly struct?
Hi. Generally, how do you implement a readonly struct? I mean define readonly fields or getter?
What is the difference? What about defensive copy?
Suppose that struct type contains primitive value types like int, float and also other struct types
What is the difference? What about defensive copy?
Suppose that struct type contains primitive value types like int, float and also other struct types