Class RuntimeEzrObjectList
- Namespace
- EzrSquared.Runtime.Collections
- Assembly
- ezrSquared-lib.dll
A List for References.
public class RuntimeEzrObjectList : List<Reference>, IMutable<RuntimeEzrObjectList>
- Inheritance
-
objectList<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
RuntimeEzrObjectList(int)
Creates a new RuntimeEzrObjectList with the specified capacity.
public RuntimeEzrObjectList(int capacity)
Parameters
capacity
intThe capacity of the list.
Methods
Add(Reference)
Adds a new reference to the list.
public void Add(Reference reference)
Parameters
reference
ReferenceThe 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
RuntimeResultRuntime 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
intThe index to start the range.
length
intThe 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
intThe index.
RemoveRange(int, int)
Removes a range of elements in the list.
public void RemoveRange(int index, int length)
Parameters
index
intThe index to start the range.
length
intThe length of the range.