Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ CopyTo() [1/2]

void ICollection. System.Collections.Concurrent.BlockingCollection< T >.CopyTo ( Array array,
int index )
inlineprivate

Implements System.Collections.ICollection.

Definition at line 700 of file BlockingCollection.cs.

701 {
703 T[] array2 = _collection.ToArray();
704 try
705 {
706 Array.Copy(array2, 0, array, index, array2.Length);
707 }
708 catch (ArgumentNullException)
709 {
710 throw new ArgumentNullException("array");
711 }
712 catch (ArgumentOutOfRangeException)
713 {
714 throw new ArgumentOutOfRangeException("index", index, System.SR.BlockingCollection_CopyTo_NonNegative);
715 }
716 catch (ArgumentException)
717 {
719 }
720 catch (RankException)
721 {
723 }
724 catch (InvalidCastException)
725 {
727 }
728 catch (ArrayTypeMismatchException)
729 {
731 }
732 }
static string BlockingCollection_CopyTo_NonNegative
Definition SR.cs:30
static string BlockingCollection_CopyTo_MultiDim
Definition SR.cs:28
static string BlockingCollection_CopyTo_IncorrectType
Definition SR.cs:26
static string Collection_CopyTo_TooManyElems
Definition SR.cs:32
Definition SR.cs:7

References System.Collections.Concurrent.BlockingCollection< T >._collection, System.array, System.SR.BlockingCollection_CopyTo_IncorrectType, System.SR.BlockingCollection_CopyTo_MultiDim, System.SR.BlockingCollection_CopyTo_NonNegative, System.Collections.Concurrent.BlockingCollection< T >.CheckDisposed(), System.SR.Collection_CopyTo_TooManyElems, System.Array.Copy(), and System.index.