Mono Class Library: System.Collections.ArrayList Overview | Members

System.Collections.ArrayList.IsReadOnly Property

Gets a value indicating whether the current instance is read-only.

public virtual bool IsReadOnly { get; }

Value

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

Remarks

This property is read-only.

Note:

The elements of a ArrayList that is read-only cannot be modified, nor can elements be added to or removed from that list.

An attempt to add to, remove from, or modify a read-only ArrayList will throw NotSupportedException. However, changes to the ArrayList that was used to create the read-only ArrayList are reflected in the read-only ArrayList.

This property is implemented to support the IList interface.

Operation
As described above.

The default value of this property is false.

Requirements

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