PostSharp SDK 2023.0 / / Class Reference / Post­Sharp.​Sdk.​Code­Model Namespace / Field­Ref­Declaration Class / Field­Ref­Declaration Properties / Field­Ref­Declaration.​Is­Read­Only Property

FieldRefDeclaration.IsReadOnly Property

Determines whether the field is read-only (i.e. init only).

Namespace:  PostSharp.Sdk.CodeModel
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 2023.0.3.0 (2023.0.3.0)
Syntax
C#
public bool IsReadOnly { get; }

Property Value

Type: Boolean

Implements

IField.IsReadOnly
See Also