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

◆ CopyTo() [2/2]

void System.Text.Json.JsonPropertyDictionary< T >.ValueCollection.CopyTo ( T[] nodeArray,
int index )
inline

Definition at line 110 of file JsonPropertyDictionary.cs.

111 {
112 if (index < 0)
113 {
114 ThrowHelper.ThrowArgumentOutOfRangeException_NodeArrayIndexNegative("index");
115 }
117 {
118 if (index >= nodeArray.Length)
119 {
120 ThrowHelper.ThrowArgumentException_NodeArrayTooSmall("nodeArray");
121 }
122 nodeArray[index++] = item.Value;
123 }
124 }

References System.Text.Json.JsonPropertyDictionary< T >.ValueCollection._parent, System.index, System.item, System.Text.Json.ThrowHelper.ThrowArgumentException_NodeArrayTooSmall(), and System.Text.Json.ThrowHelper.ThrowArgumentOutOfRangeException_NodeArrayIndexNegative().