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

◆ CopyTo() [4/4]

void System.Collections.Generic.SortedSet< T >.CopyTo ( T[] array,
int index,
int count )
inlineinherited

Definition at line 1082 of file SortedSet.cs.

1083 {
1084 T[] array2 = array;
1085 if (array2 == null)
1086 {
1087 throw new ArgumentNullException("array");
1088 }
1089 if (index < 0)
1090 {
1091 throw new ArgumentOutOfRangeException("index", index, System.SR.ArgumentOutOfRange_NeedNonNegNum);
1092 }
1093 if (count < 0)
1094 {
1095 throw new ArgumentOutOfRangeException("count", System.SR.ArgumentOutOfRange_NeedNonNegNum);
1096 }
1097 if (count > array2.Length - index)
1098 {
1100 }
1101 count += index;
1103 {
1104 if (index >= count)
1105 {
1106 return false;
1107 }
1108 array2[index++] = node.Item;
1109 return true;
1110 });
1111 }
virtual bool InOrderTreeWalk(TreeWalkPredicate< T > action)
Definition SortedSet.cs:841
static string Arg_ArrayPlusOffTooSmall
Definition SR.cs:16
static string ArgumentOutOfRange_NeedNonNegNum
Definition SR.cs:32
Definition SR.cs:7

References System.SR.Arg_ArrayPlusOffTooSmall, System.SR.ArgumentOutOfRange_NeedNonNegNum, System.array, System.Collections.Generic.SortedSet< T >.count, System.Runtime.Serialization.Dictionary, System.index, and System.Collections.Generic.SortedSet< T >.InOrderTreeWalk().