Does the ‘readonly’ modifier create a hidden copy of a field?
Does the readonly modifier create a hidden copy of a field? Calling a method or property on a read-only field of a regular struct type (outside the constructor or static constructor) first copies the field, yes. That’s because the compiler doesn’t know whether the property or method access would modify the value you call it … Read more