Table of Contents

Class RuntimeEzrObjectList

Namespace
EzrSquared.Runtime.Collections
Assembly
ezrSquared-lib.dll

A List for References.

public class RuntimeEzrObjectList : List<Reference>, IMutable<RuntimeEzrObjectList>
Inheritance
object
List<Reference>
RuntimeEzrObjectList
Implements

Constructors

RuntimeEzrObjectList()

Creates a new RuntimeEzrObjectList.

public RuntimeEzrObjectList()

RuntimeEzrObjectList(IEnumerable<Reference>)

Creates a new RuntimeEzrObjectList based on another System.Collections.Generic.IEnumerable<T>.

public RuntimeEzrObjectList(IEnumerable<Reference> collection)

Parameters

collection IEnumerable<Reference>

The base collection of References.

RuntimeEzrObjectList(int)

Creates a new RuntimeEzrObjectList with the specified capacity.

public RuntimeEzrObjectList(int capacity)

Parameters

capacity int

The capacity of the list.

Methods

Add(Reference)

Adds a new reference to the list.

public void Add(Reference reference)

Parameters

reference Reference

The reference to add.

AddRange(IEnumerable<Reference>)

Adds multiple new reference to the list.

public void AddRange(IEnumerable<Reference> references)

Parameters

references IEnumerable<Reference>

The references to add.

Remarks

This actually creates a new Reference object for each added reference.

DeepCopy(RuntimeResult)

Creates a deep copy of the IMutable<T>.

public IMutable<RuntimeEzrObjectList>? DeepCopy(RuntimeResult result)

Parameters

result RuntimeResult

Runtime result for raising errors./

Returns

IMutable<RuntimeEzrObjectList>

The copy, or, null if failed.

Remarks

The deep copy here means that all IMutable<T> properties and fields in the object are also copied.

~RuntimeEzrObjectList()

Destructor.

protected ~RuntimeEzrObjectList()

GetRange(int, int)

Creates a shallow copy of a range of elements in the list.

public RuntimeEzrObjectList GetRange(int index, int length)

Parameters

index int

The index to start the range.

length int

The length of the range.

Returns

RuntimeEzrObjectList

The copy.

Release()

Releases the references associated with the list, and clears it.

public void Release()

RemoveAt(int)

Removes an element in the list at the given index.

public void RemoveAt(int index)

Parameters

index int

The index.

RemoveRange(int, int)

Removes a range of elements in the list.

public void RemoveRange(int index, int length)

Parameters

index int

The index to start the range.

length int

The length of the range.