Interface IExtendedList<T>
- Namespace
- DynamicData
- Assembly
- DynamicData.dll
Represents a list which supports range operations.
public interface IExtendedList<T> : IList<T>, ICollection<T>, IEnumerable<T>, IEnumerable
Type Parameters
T
The type of the item.
- Inherited Members
- Extension Methods
Methods
AddRange(IEnumerable<T>)
Adds the elements of the specified collection to the end of the collection.
void AddRange(IEnumerable<T> collection)
Parameters
collection
IEnumerable<T>The items to add.
Exceptions
- ArgumentNullException
collection
is null.
InsertRange(IEnumerable<T>, int)
Inserts the elements of a collection into the List<T> at the specified index.
void InsertRange(IEnumerable<T> collection, int index)
Parameters
collection
IEnumerable<T>The items to insert.
index
intThe zero-based index at which the new elements should be inserted.
Exceptions
- ArgumentNullException
collection
is null.- ArgumentOutOfRangeException
index
is less than 0.-or-index
is greater than Count.
Move(int, int)
Moves an item from the original to the destination index.
void Move(int original, int destination)
Parameters
RemoveRange(int, int)
Removes a range of elements from the List<T>.
void RemoveRange(int index, int count)
Parameters
index
intThe zero-based starting index of the range of elements to remove.
count
intThe number of elements to remove.
Exceptions
- ArgumentOutOfRangeException
index
is less than 0.-or-count
is less than 0.- ArgumentException
index
andcount
do not denote a valid range of elements in the List<T>.