Class DataHelper<T>
Inherited Members
Namespace: Ritchie.Toolbox.ListAdapters
Assembly: Ritchie.Toolbox.dll
Syntax
public sealed class DataHelper<T> : IReadOnlyList<T>, IReadOnlyCollection<T>, IEnumerable<T>, IEnumerable
Type Parameters
Name | Description |
---|---|
T |
Constructors
DataHelper(INotifyDataChanged)
Declaration
public DataHelper(INotifyDataChanged destination)
Parameters
Type | Name | Description |
---|---|---|
INotifyDataChanged | destination |
Properties
Count
Gets the number of elements in the collection.
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
int | The number of elements in the collection. |
this[int]
Gets the element at the specified index in the read-only list.
Declaration
public T this[int index] { get; }
Parameters
Type | Name | Description |
---|---|---|
int | index | The zero-based index of the element to get. |
Property Value
Type | Description |
---|---|
T | The element at the specified index in the read-only list. |
Methods
GetEnumerator()
Returns an enumerator that iterates through the collection.
Declaration
public IEnumerator<T> GetEnumerator()
Returns
Type | Description |
---|---|
IEnumerator<T> | An enumerator that can be used to iterate through the collection. |
SetItems(IEnumerable<T>)
Declaration
public void SetItems(IEnumerable<T> newItems)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<T> | newItems |