Method InsertRange
- Namespace
- DisCatSharp.Lavalink
- Assembly
- DisCatSharp.Lavalink.dll
InsertRange(int, IEnumerable<T>)
Adds a range of objects at the specified index in the LavalinkQueue<T>.
public void InsertRange(int index, IEnumerable<T> values)
Parameters
index
intThe zero-based index at which the objects should be inserted.
values
IEnumerable<T>The objects to insert. The values cannot be null.
Exceptions
- ArgumentOutOfRangeException
Thrown when the index is out of range.
- ArgumentNullException
Thrown when the values are null.
- ArgumentOutOfRangeException
Thrown when the index is out of range.