[This is preliminary documentation and is subject to change.]
Adds the elements of a collection to the IndexedList.
| C# |
public void AddRange( IEnumerable<T> collection )
- collection (IEnumerable<(Of <(<'T>)>)>)
- The collection of objects to add.
This method performs exactly is if each object in the collection
was added to this IndexedList in turn using the Add(T) method.
| Exception | Condition |
|---|---|
| InvalidOperationException | Thrown if any of the objects
added are invalid (Persistent.IsInvalid returns
true). |