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

◆ CopyTo()

void System.Collections.Hashtable.ValueCollection.CopyTo ( Array array,
int arrayIndex )
inline

Implements System.Collections.ICollection.

Definition at line 80 of file Hashtable.cs.

81 {
82 if (array == null)
83 {
84 throw new ArgumentNullException("array");
85 }
86 if (array.Rank != 1)
87 {
88 throw new ArgumentException(SR.Arg_RankMultiDimNotSupported, "array");
89 }
90 if (arrayIndex < 0)
91 {
92 throw new ArgumentOutOfRangeException("arrayIndex", SR.ArgumentOutOfRange_NeedNonNegNum);
93 }
94 if (array.Length - arrayIndex < _hashtable._count)
95 {
96 throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall);
97 }
99 }
void CopyValues(Array array, int arrayIndex)
Definition Hashtable.cs:849

References System.Collections.Hashtable._count, System.Collections.Hashtable.ValueCollection._hashtable, System.SR.Arg_ArrayPlusOffTooSmall, System.SR.Arg_RankMultiDimNotSupported, System.SR.ArgumentOutOfRange_NeedNonNegNum, System.array, System.arrayIndex, and System.Collections.Hashtable.CopyValues().