src/Shared/EntityFramework/Core/Objects/ObjectParameterCollection.cs
// <summary>
// This private method checks for the existence of a given parameter object
// by name by iterating through the list and comparing each parameter name
// to the specified name. This is a case-insensitive lookup.
// </summary>
This private method checks for the existence of a given parameter object
by name by iterating through the list and comparing each parameter name
to the specified name. This is a case-insensitive lookup.
This private method checks for the existence of a given parameter object by name by iterating through the list and comparing each parameter name to the specified name . This is a case - insensitive lookup .
private int IndexOf(string name)
        {
            var index = 0;
            foreach (var parameter in _parameters)
            {
                if (0 == String.Compare(name, parameter.Name, StringComparison.OrdinalIgnoreCase))
                {
                    return index;
                }
                index++;
            }
            return -1;
        }
private int IndexOf ( string name ) { var index = 0 ; foreach ( var parameter in _parameters ) { if ( 0 == String . Compare ( name , parameter . Name , StringComparison . OrdinalIgnoreCase ) ) { return index ; } index ++ ; } return - 1 ; }
This private method checks for the existence of a given parameter object
by name by iterating through the list and comparing each parameter name
to the specified name.
This private method checks for the existence of a given parameter object by name by iterating through the list and comparing each parameter name to the specified name .
name
string