System.Xml.Schema.XmlSchemaObjectTable.NamesCollection.CopyTo C# (CSharp) Méthode

CopyTo() public méthode

public CopyTo ( Array array, int arrayIndex ) : void
array System.Array
arrayIndex int
Résultat void
            public void CopyTo(Array array, int arrayIndex) {
                if (array == null)
                    throw new ArgumentNullException("array");

			    if (arrayIndex < 0) 
                    throw new ArgumentOutOfRangeException("arrayIndex");

                Debug.Assert(array.Length >= size, "array is not big enough to hold all the items in the ICollection");

                for (int i = 0; i < size; i++) {
                    array.SetValue(entries[i].qname, arrayIndex++);
                }
            }
XmlSchemaObjectTable.NamesCollection