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

◆ CopyTo() [2/2]

void System.Xml.Schema.XmlSchemaCollection.CopyTo ( XmlSchema[] array,
int index )
inline

Definition at line 221 of file XmlSchemaCollection.cs.

222 {
223 if (array == null)
224 {
225 throw new ArgumentNullException("array");
226 }
227 if (index < 0)
228 {
229 throw new ArgumentOutOfRangeException("index");
230 }
231 XmlSchemaCollectionEnumerator enumerator = GetEnumerator();
232 while (enumerator.MoveNext())
233 {
234 XmlSchema current = enumerator.Current;
235 if (current != null)
236 {
237 if (index == array.Length)
238 {
239 throw new ArgumentOutOfRangeException("index");
240 }
241 array[index++] = enumerator.Current;
242 }
243 }
244 }

References System.array, System.Xml.Dictionary, System.Xml.Schema.XmlSchemaCollection.GetEnumerator(), and System.index.