public bool MoveNext()
{
return _enumerator.MoveNext();
}
void ICollection.CopyTo(Array array, int index) { ArgumentNullException.ThrowIfNull(array); if (index < 0) { throw new ArgumentOutOfRangeException(nameof(index)); } for (XmlSchemaCollectionEnumerator e = this.GetEnumerator(); e.MoveNext();) { if (index == array.Length) { throw new ArgumentOutOfRangeException(nameof(index)); } array.SetValue(e.Current, index++); } }