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
capacityintThe capacity of the list.
Methods
Add(Reference)
Adds a new reference to the list.
public void Add(Reference reference)
Parameters
referenceReferenceThe reference to add.
AddRange(IEnumerable<Reference>)
Adds multiple new reference to the list.
public void AddRange(IEnumerable<Reference> references)
Parameters
referencesIEnumerable<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
resultRuntimeResultRuntime 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
indexintThe index to start the range.
lengthintThe 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
indexintThe index.
RemoveRange(int, int)
Removes a range of elements in the list.
public void RemoveRange(int index, int length)
Parameters
indexintThe index to start the range.
lengthintThe length of the range.