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

◆ CopyTo() [2/2]

void System.Data.ConstraintCollection.CopyTo ( Constraint[] array,
int index )
inline

Definition at line 404 of file ConstraintCollection.cs.

405 {
406 if (array == null)
407 {
408 throw ExceptionBuilder.ArgumentNull("array");
409 }
410 if (index < 0)
411 {
412 throw ExceptionBuilder.ArgumentOutOfRange("index");
413 }
414 if (array.Length - index < _list.Count)
415 {
416 throw ExceptionBuilder.InvalidOffsetLength();
417 }
418 for (int i = 0; i < _list.Count; i++)
419 {
420 array[index + i] = (Constraint)_list[i];
421 }
422 }

References System.Data.ConstraintCollection._list, System.Data.ExceptionBuilder.ArgumentNull(), System.Data.ExceptionBuilder.ArgumentOutOfRange(), System.array, System.Collections.ArrayList.Count, System.index, and System.Data.ExceptionBuilder.InvalidOffsetLength().