src/NetStandard/Collections/Collections/src/Specialized/OrderedDictionary.cs
/// <summary>
/// Gets the index of the key specified.
/// </summary>
/// <param name="key">The key whose index will be located</param>
/// <returns>Returns the index of the key specified if found.  Returns -1 if the key could not be located.</returns>
Gets the index of the key specified.
Gets the index of the key specified .
public int IndexOf(K key)
        {
            if (keyedCollection.Contains(key)) {
                return keyedCollection.IndexOf(keyedCollection[key]);
            } else {
                return -1;
            }
        }
public int IndexOf ( K key ) { if ( keyedCollection . Contains ( key ) ) { return keyedCollection . IndexOf ( keyedCollection [ key ] ) ; } else { return - 1 ; } }
Gets the index of the key specified.
Gets the index of the key specified .
Returns the index of the key specified if found.  Returns -1 if the key could not be located.
Returns the index of the key specified if found . Returns - 1 if the key could not be located .
key
K
The key whose index will be located
The key whose index will be located