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