Adds all of the elements in the supplied collection to this queue.
Attempts to AddAll of a queue to itself result in ArgumentException. Further, the behavior of this operation is undefined if the specified collection is modified while the operation is in progress.
This implementation iterates over the specified collection, and adds each element returned by the iterator to this queue, in turn. An exception encountered while trying to add an element (including, in particular, a
|ArgumentNullException|| If the supplied collection or any one of its elements are
|ArgumentException||If the collection is the current IQueue or the collection size is greater than the queue capacity.|