Skip to content

FieldInfoExtensions.IsReadOnly Method ​

Definition ​

Returns true if the field is readonly; false otherwise.

c#
public static bool IsReadOnly(this FieldInfo field);

View source

Parameters ​

NameTypeDescription
fieldFieldInfoThe field.

Returns ​

Boolean

true if the field is readonly; false otherwise.

Remarks ​

Equivalent to IsInitOnly.