src/packages/EmbedIO/Routing/RouteMatch.cs
/// <summary>
/// Returns the index of the parameter with the specified name.
/// </summary>
/// <param name="name">The parameter name.</param>
/// <returns>The index of the parameter, or -1 if none of the
/// route parameters have the specified name.</returns>
Returns the index of the parameter with the specified name.
Returns the index of the parameter with the specified name .
public int IndexOf(string name)
        {
            var count = Names.Count;
            for (var i = 0; i < count; i++)
            {
                if (Names[i] == name)
                {
                    return i;
                }
            }
            return -1;
        }
public int IndexOf ( string name ) { var count = Names . Count ; for ( var i = 0 ; i < count ; i ++ ) { if ( Names [ i ] == name ) { return i ; } } return - 1 ; }
Returns the index of the parameter with the specified name.
Returns the index of the parameter with the specified name .
The index of the parameter, or -1 if none of the
route parameters have the specified name.
The index of the parameter or - 1 if none of the route parameters have the specified name .
name
string
The parameter name.
The parameter name .