System.Collections.Generic.ICollection<T>.IsReadOnly Property

Gets a value indicating whether the ICollection`1 is read-only.

Syntax

public bool IsReadOnly { get; }

Value

true, if the current collection 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.Generic
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0