System.Collections.IList.IsReadOnly Property

Gets a value indicating whether the IList is read-only.

Syntax

public bool IsReadOnly { get; }

Value

true if the current instance is read-only; otherwise, false.

Remarks

A collection that is read-only does not allow the addition, removal, or modification of elements after the collection is created.

Requirements

Namespace: System.Collections
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0