Skip to content

Instantly share code, notes, and snippets.

@controlflow
Last active December 21, 2020 13:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save controlflow/9fac2ee6b3c81fe746afbb85b6cf300f to your computer and use it in GitHub Desktop.
Save controlflow/9fac2ee6b3c81fe746afbb85b6cf300f to your computer and use it in GitHub Desktop.
case IProperty {IsAuto: false, IsStatic: false} autoProperty
when !autoProperty.CanBeOverridden()
&& (autoProperty.Setter == null || autoProperty.Setter.IsInitOnly):
case IProperty {IsAuto: false, IsStatic: false, Setter: null or {IsInitOnly: true}} autoProperty
when !autoProperty.CanBeOverridden():
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment