Open sandboxFocus

Property IsReadOnly

IsReadOnly

Gets or sets a value indicating whether the introduced field is read-only (initonly): only the constructors of the target type assign it. An advice imports a read-only field by value or as in, but not as ref or out. The default value is false.

Declaration
public bool IsReadOnly { get; set; }
Property Value
Type Description
bool