Open sandboxFocus

Enum Writeability

Enumerates the different abilities of a field or property to be written (set). Values are ordered from most restrictive (None) to least restrictive (All).

Namespace: Metalama.Framework.Code
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
public enum Writeability

Fields

Name Description
All

The field or property can be set at any time (e.g., a non-readonly field or a property with a set accessor).

ConstructorOnly

The field or property can only be set from constructors of the declaring type (e.g., a readonly field or a property with only an init accessor).

InitOnly

The property can be set from constructors or from object initializers (e.g., a property with an init accessor).

None

The field or property cannot be set at any time (e.g., a const field or a read-only property with only a get accessor).

See Also