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

◆ CopyTo()

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

Implements System.Collections.ICollection.

Definition at line 38 of file Hashtable.cs.

39 {
40 if (array == null)
41 {
42 throw new ArgumentNullException("array");
43 }
44 if (array.Rank != 1)
45 {
46 throw new ArgumentException(SR.Arg_RankMultiDimNotSupported, "array");
47 }
48 if (arrayIndex < 0)
49 {
50 throw new ArgumentOutOfRangeException("arrayIndex", SR.ArgumentOutOfRange_NeedNonNegNum);
51 }
52 if (array.Length - arrayIndex < _hashtable._count)
53 {
54 throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall);
55 }
57 }
void CopyKeys(Array array, int arrayIndex)
Definition Hashtable.cs:782

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