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

◆ CopyTo()

void System.Collections.EmptyReadOnlyDictionaryInternal.CopyTo ( Array array,
int index )
inline

Implements System.Collections.ICollection.

Definition at line 96 of file EmptyReadOnlyDictionaryInternal.cs.

97 {
98 if (array == null)
99 {
100 throw new ArgumentNullException("array");
101 }
102 if (array.Rank != 1)
103 {
104 throw new ArgumentException(SR.Arg_RankMultiDimNotSupported);
105 }
106 if (index < 0)
107 {
108 throw new ArgumentOutOfRangeException("index", SR.ArgumentOutOfRange_NeedNonNegNum);
109 }
110 if (array.Length - index < Count)
111 {
112 throw new ArgumentException(SR.ArgumentOutOfRange_Index, "index");
113 }
114 }

References System.SR.Arg_RankMultiDimNotSupported, System.SR.ArgumentOutOfRange_Index, System.SR.ArgumentOutOfRange_NeedNonNegNum, System.array, System.Collections.EmptyReadOnlyDictionaryInternal.Count, and System.index.