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

◆ CopyTo() [2/4]

void System.Text.RegularExpressions.CaptureCollection.CopyTo ( Capture[] array,
int arrayIndex )
inline

Definition at line 156 of file CaptureCollection.cs.

157 {
158 if (array == null)
159 {
160 ThrowHelper.ThrowArgumentNullException(ExceptionArgument.array);
161 }
162 if ((uint)arrayIndex > (uint)array.Length)
163 {
164 ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.arrayIndex);
165 }
166 if (array.Length - arrayIndex < Count)
167 {
169 }
170 int num = arrayIndex;
171 for (int i = 0; i < Count; i++)
172 {
173 array[num] = this[i];
174 num++;
175 }
176 }
static string Arg_ArrayPlusOffTooSmall
Definition SR.cs:16
Definition SR.cs:7

References System.SR.Arg_ArrayPlusOffTooSmall, System.Text.RegularExpressions.array, System.Text.RegularExpressions.arrayIndex, System.Text.RegularExpressions.CaptureCollection.Count, System.Text.RegularExpressions.i, System.Text.RegularExpressions.ThrowHelper.ThrowArgumentNullException(), and System.Text.RegularExpressions.ThrowHelper.ThrowArgumentOutOfRangeException().