Development · Native API migration preview · Coverage validation in progress Published release →

API Browser

Member group

.ctor

Declaring type: ArrayList<T>
Module: System.Collections
Assembly: System.Runtime.dll
Source file: ArrayList.rvn

Overloads / Variants

.ctor

init() -> void

Source file: ArrayList.rvn

Creates an empty list with zero or the requested initial capacity; negative capacity faults.

.ctor

init(capacity: int) -> void

Source file: ArrayList.rvn

Creates an empty list with zero or the requested initial capacity; negative capacity faults.

Parameters

Name Type Description
capacity Int32 The initial number of reserved slots; must be nonnegative. The new list remains empty.

.ctor

init(items: Iterable<T>) -> void

Source file: ArrayList.rvn

Copies elements in enumeration order.

Parameters

Name Type Description
items Iterable<T> An iterable to consume once, including sequences and query results.

Remarks

Native development API. Eager shallow copy with independent storage. Enumeration order is preserved. Disposes the iterator on normal completion; provider Faults are terminal without guaranteed cleanup. No concurrent snapshot guarantee.