LibLangly icon indicating copy to clipboard operation
LibLangly copied to clipboard

ImmutableAttribute and Analyzer

Open Entomy opened this issue 4 years ago • 0 comments

This attribute should specify that the type it is attached to must be publicly immutable. private, internal, and protected mutation is allowed. This can easily be enforced as a contract via analyzer, which just looks at the type and ensures there are no public mutators. Any fields must be readonly and any properties must not have a public set.

Entomy avatar May 27 '20 12:05 Entomy