Class TrackableList<T>
Implements
Inherited Members
Namespace: Coree.NETASP.UnderConstruction
Assembly: Coree.NETASP.dll
Syntax
public class TrackableList<T> : IList<TrackableItem<T>>, ICollection<TrackableItem<T>>, IEnumerable<TrackableItem<T>>, IEnumerable
Type Parameters
Name | Description |
---|---|
T |
Properties
| Edit this page View SourceCount
Gets the number of elements contained in the ICollection<T>.
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
int | The number of elements contained in the ICollection<T>. |
IsReadOnly
Gets a value indicating whether the ICollection<T> is read-only.
Declaration
public bool IsReadOnly { get; }
Property Value
Type | Description |
---|---|
bool | true if the ICollection<T> is read-only; otherwise, false. |
this[int]
Gets or sets the element at the specified index.
Declaration
public TrackableItem<T> this[int index] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
int | index | The zero-based index of the element to get or set. |
Property Value
Type | Description |
---|---|
TrackableItem<T> | The element at the specified index. |
Exceptions
Type | Condition |
---|---|
ArgumentOutOfRangeException |
|
NotSupportedException | The property is set and the IList<T> is read-only. |
Methods
| Edit this page View SourceAdd(TrackableItem<T>)
Adds an item to the ICollection<T>.
Declaration
public void Add(TrackableItem<T> item)
Parameters
Type | Name | Description |
---|---|---|
TrackableItem<T> | item | The object to add to the ICollection<T>. |
Exceptions
Type | Condition |
---|---|
NotSupportedException | The ICollection<T> is read-only. |
Add(T)
Declaration
public void Add(T item)
Parameters
Type | Name | Description |
---|---|---|
T | item |
AddRange(TrackableItem<T>[])
Declaration
public void AddRange(TrackableItem<T>[] items)
Parameters
Type | Name | Description |
---|---|---|
TrackableItem<T>[] | items |
AddRange(T[])
Declaration
public void AddRange(T[] items)
Parameters
Type | Name | Description |
---|---|---|
T[] | items |
Clear()
Removes all items from the ICollection<T>.
Declaration
public void Clear()
Exceptions
Type | Condition |
---|---|
NotSupportedException | The ICollection<T> is read-only. |
Contains(TrackableItem<T>)
Determines whether the ICollection<T> contains a specific value.
Declaration
public bool Contains(TrackableItem<T> item)
Parameters
Type | Name | Description |
---|---|---|
TrackableItem<T> | item | The object to locate in the ICollection<T>. |
Returns
Type | Description |
---|---|
bool | true if |
Contains(T)
Declaration
public bool Contains(T item)
Parameters
Type | Name | Description |
---|---|---|
T | item |
Returns
Type | Description |
---|---|
bool |
CopyTo(TrackableItem<T>[], int)
Copies the elements of the ICollection<T> to an Array, starting at a particular Array index.
Declaration
public void CopyTo(TrackableItem<T>[] array, int arrayIndex)
Parameters
Type | Name | Description |
---|---|---|
TrackableItem<T>[] | array | The one-dimensional Array that is the destination of the elements copied from ICollection<T>. The Array must have zero-based indexing. |
int | arrayIndex | The zero-based index in |
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
|
ArgumentOutOfRangeException |
|
ArgumentException | The number of elements in the source ICollection<T> is greater than the available space from |
GetEnumerator()
Returns an enumerator that iterates through the collection.
Declaration
public IEnumerator<TrackableItem<T>> GetEnumerator()
Returns
Type | Description |
---|---|
IEnumerator<TrackableItem<T>> | An enumerator that can be used to iterate through the collection. |
GetIncludingRemoved()
Declaration
public List<TrackableItem<T>> GetIncludingRemoved()
Returns
Type | Description |
---|---|
List<TrackableItem<T>> |
IndexOf(TrackableItem<T>)
Determines the index of a specific item in the IList<T>.
Declaration
public int IndexOf(TrackableItem<T> item)
Parameters
Type | Name | Description |
---|---|---|
TrackableItem<T> | item | The object to locate in the IList<T>. |
Returns
Type | Description |
---|---|
int | The index of |
IndexOf(T)
Declaration
public int IndexOf(T item)
Parameters
Type | Name | Description |
---|---|---|
T | item |
Returns
Type | Description |
---|---|
int |
Insert(int, TrackableItem<T>)
Inserts an item to the IList<T> at the specified index.
Declaration
public void Insert(int index, TrackableItem<T> item)
Parameters
Type | Name | Description |
---|---|---|
int | index | The zero-based index at which |
TrackableItem<T> | item | The object to insert into the IList<T>. |
Exceptions
Type | Condition |
---|---|
ArgumentOutOfRangeException |
|
NotSupportedException | The IList<T> is read-only. |
Insert(int, T)
Declaration
public void Insert(int index, T item)
Parameters
Type | Name | Description |
---|---|---|
int | index | |
T | item |
Remove(TrackableItem<T>)
Removes the first occurrence of a specific object from the ICollection<T>.
Declaration
public bool Remove(TrackableItem<T> item)
Parameters
Type | Name | Description |
---|---|---|
TrackableItem<T> | item | The object to remove from the ICollection<T>. |
Returns
Type | Description |
---|---|
bool | true if |
Exceptions
Type | Condition |
---|---|
NotSupportedException | The ICollection<T> is read-only. |
Remove(T)
Declaration
public bool Remove(T item)
Parameters
Type | Name | Description |
---|---|---|
T | item |
Returns
Type | Description |
---|---|
bool |
RemoveAt(int)
Removes the IList<T> item at the specified index.
Declaration
public void RemoveAt(int index)
Parameters
Type | Name | Description |
---|---|---|
int | index | The zero-based index of the item to remove. |
Exceptions
Type | Condition |
---|---|
ArgumentOutOfRangeException |
|
NotSupportedException | The IList<T> is read-only. |
ToList()
Declaration
public List<T> ToList()
Returns
Type | Description |
---|---|
List<T> |
Operators
| Edit this page View Sourceimplicit operator List<T>(TrackableList<T>)
Declaration
public static implicit operator List<T>(TrackableList<T> trackableList)
Parameters
Type | Name | Description |
---|---|---|
TrackableList<T> | trackableList |
Returns
Type | Description |
---|---|
List<T> |
implicit operator TrackableList<T>(List<T>)
Declaration
public static implicit operator TrackableList<T>(List<T> items)
Parameters
Type | Name | Description |
---|---|---|
List<T> | items |
Returns
Type | Description |
---|---|
TrackableList<T> |