FieldAccessorIsReadOnly Property

Gets whether the field is read-only.

Definition

Namespace: KGySoft.Reflection
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
C#
public bool IsReadOnly { get; }

Property Value

Boolean

Remarks

  Note

Even if this property returns the FieldAccessor is able to set the field, except if the .NET Standard 2.0 build of the KGySoft.CoreLibraries assembly is used and the field is an instance field of a value type, in which case doing so throws a PlatformNotSupportedException.

See Also