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

System.Collections.ArrayList.IsFixedSize Property

Gets a bool indicating whether the ArrayList.Capacity of the current instance cannot be changed.

public virtual bool IsFixedSize { get; }

Value

true if the ArrayList.Capacity of the current instance cannot be changed; otherwise, false.

Remarks

This property is read-only.

Note:

Elements cannot be added or removed from a ArrayList with a fixed size, while existing elements can be modified.

An attempt to add to or remove from a fixed size ArrayList will throw NotSupportedException. However, the size of a fixed size ArrayList will change to reflect the additions or removals from the ArrayList that was used to create the fixed size ArrayList.

This property is implemented to support the IList interface.

Operation
As described above.

The default value for this property is false.

Requirements

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