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

◆ CopyTo() [1/2]

void ICollection. System.Xml.Schema.XmlSchemaCollection.CopyTo ( Array array,
int index )
inlineprivate

Implements System.Collections.ICollection.

Definition at line 200 of file XmlSchemaCollection.cs.

201 {
202 if (array == null)
203 {
204 throw new ArgumentNullException("array");
205 }
206 if (index < 0)
207 {
208 throw new ArgumentOutOfRangeException("index");
209 }
210 XmlSchemaCollectionEnumerator enumerator = GetEnumerator();
211 while (enumerator.MoveNext())
212 {
213 if (index == array.Length)
214 {
215 throw new ArgumentOutOfRangeException("index");
216 }
217 array.SetValue(enumerator.Current, index++);
218 }
219 }

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