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

◆ CopyTo() [1/4]

void ICollection. System.Collections.Generic.SortedSet< T >.CopyTo ( Array array,
int index )
inlineprivateinherited

Definition at line 1113 of file SortedSet.cs.

1114 {
1115 if (array == null)
1116 {
1117 throw new ArgumentNullException("array");
1118 }
1119 if (array.Rank != 1)
1120 {
1122 }
1123 if (array.GetLowerBound(0) != 0)
1124 {
1126 }
1127 if (index < 0)
1128 {
1129 throw new ArgumentOutOfRangeException("index", index, System.SR.ArgumentOutOfRange_NeedNonNegNum);
1130 }
1131 if (array.Length - index < Count)
1132 {
1134 }
1135 if (array is T[] array2)
1136 {
1138 return;
1139 }
1140 object[] objects = array as object[];
1141 if (objects == null)
1142 {
1144 }
1145 try
1146 {
1148 {
1149 objects[index++] = node.Item;
1150 return true;
1151 });
1152 }
1153 catch (ArrayTypeMismatchException)
1154 {
1156 }
1157 }
virtual bool InOrderTreeWalk(TreeWalkPredicate< T > action)
Definition SortedSet.cs:841
static string Arg_ArrayPlusOffTooSmall
Definition SR.cs:16
static string Argument_InvalidArrayType
Definition SR.cs:54
static string Arg_NonZeroLowerBound
Definition SR.cs:14
static string Arg_RankMultiDimNotSupported
Definition SR.cs:18
static string ArgumentOutOfRange_NeedNonNegNum
Definition SR.cs:32
Definition SR.cs:7

References System.SR.Arg_ArrayPlusOffTooSmall, System.SR.Arg_NonZeroLowerBound, System.SR.Arg_RankMultiDimNotSupported, System.SR.Argument_InvalidArrayType, System.SR.ArgumentOutOfRange_NeedNonNegNum, System.array, System.Collections.Generic.SortedSet< T >.CopyTo(), System.Collections.Generic.SortedSet< T >.Count, System.Runtime.Serialization.Dictionary, System.index, and System.Collections.Generic.SortedSet< T >.InOrderTreeWalk().