Nu/Nu.Math/OrderedDictionary.cs
/// <summary>
/// Gets the key/value pairs in the dictionary in the order they were added.
/// </summary>
/// <returns>An enumerator over the key/value pairs in the dictionary.</returns>
Gets the key/value pairs in the dictionary in the order they were added.
Gets the key / value pairs in the dictionary in the order they were added .
public IEnumerator<KeyValuePair<TKey, TValue>> GetEnumerator()
        {
            int startVersion = version;
            for (int index = 0; index != keys.Count; ++index)
            {
                var key = keys[index];
                var value = values[index];
                yield return new KeyValuePair<TKey, TValue>(key, value);
                if (version != startVersion)
                {
                    throw new InvalidOperationException(String.Empty);
                }
            }
        }
public IEnumerator < KeyValuePair < TKey , TValue > > GetEnumerator ( ) { int startVersion = version ; for ( int index = 0 ; index != keys . Count ; ++ index ) { var key = keys [ index ] ; var value = values [ index ] ; yield return new KeyValuePair < TKey , TValue > ( key , value ) ; if ( version != startVersion ) { throw new InvalidOperationException ( String . Empty ) ; } } }
Gets the key/value pairs in the dictionary in the order they were added.
Gets the key / value pairs in the dictionary in the order they were added .
An enumerator over the key/value pairs in the dictionary.
An enumerator over the key / value pairs in the dictionary .