Atl2NmfSBenchmark/Metamodels/Ant.cs
/// <summary>
/// Copies the contents of the collection to the given array starting from the given array index
/// </summary>
/// <param name="array">The array in which the elements should be copied</param>
/// <param name="arrayIndex">The starting index</param>
Copies the contents of the collection to the given array starting from the given array index
Copies the contents of the collection to the given array starting from the given array index
public override void CopyTo(IModelElement[] array, int arrayIndex)
            {
                IEnumerator<IModelElement> attributesEnumerator = this._parent.Attributes.GetEnumerator();
                try
                {
                    for (
                    ; attributesEnumerator.MoveNext(); 
                    )
                    {
                        array[arrayIndex] = attributesEnumerator.Current;
                        arrayIndex = (arrayIndex + 1);
                    }
                }
                finally
                {
                    attributesEnumerator.Dispose();
                }
            }
public override void CopyTo ( IModelElement [ ] array , int arrayIndex ) { IEnumerator < IModelElement > attributesEnumerator = this . _parent . Attributes . GetEnumerator ( ) ; try { for ( ; attributesEnumerator . MoveNext ( ) ; ) { array [ arrayIndex ] = attributesEnumerator . Current ; arrayIndex = ( arrayIndex + 1 ) ; } } finally { attributesEnumerator . Dispose ( ) ; } }
Copies the contents of the collection to the given array starting from the given array index
Copies the contents of the collection to the given array starting from the given array index
array
IModelElement[]
The array in which the elements should be copied
The array in which the elements should be copied
arrayIndex
int
The starting index
The starting index