Class RangeChange<T>
- Namespace
- DynamicData
- Assembly
- DynamicData.dll
Multiple change container.
public sealed class RangeChange<T> : IEnumerable<T>, IEnumerable
Type Parameters
T
The type of the item.
- Inheritance
-
RangeChange<T>
- Implements
-
IEnumerable<T>
- Extension Methods
Constructors
RangeChange(IEnumerable<T>, int)
Initializes a new instance of the RangeChange<T> class.
public RangeChange(IEnumerable<T> items, int index = -1)
Parameters
items
IEnumerable<T>The items.
index
intThe index.
Properties
Count
Gets the total update count.
public int Count { get; }
Property Value
Empty
Gets a Empty version of the RangeChange.
public static RangeChange<T> Empty { get; }
Property Value
- RangeChange<T>
Index
Gets the index initial index i.e. for the initial starting point of the range insertion.
public int Index { get; }
Property Value
- int
The index.
Methods
Add(T)
Adds the specified item to the range.
public void Add(T item)
Parameters
item
TThe item.
GetEnumerator()
public IEnumerator<T> GetEnumerator()
Returns
- IEnumerator<T>
Insert(int, T)
Inserts the item in the range at the specified index.
public void Insert(int index, T item)
Parameters
index
intThe index.
item
TThe item.
SetStartingIndex(int)
Sets the index of the starting index of the range.
public void SetStartingIndex(int index)
Parameters
index
intThe index.
ToString()
Returns a string that represents this instance.
public override string ToString()