Npgsql.NpgsqlParameterCollection.RemoveAt C# (CSharp) Method

RemoveAt() public method

Removes the specified NpgsqlParameter from the collection using a specific index.
public RemoveAt ( int index ) : void
index int The zero-based index of the parameter.
return void
        public override void RemoveAt(int index)
        {
            NpgsqlEventLog.LogMethodEnter(LogLevel.Debug, CLASSNAME, "RemoveAt", index);

            if (InternalList.Count - 1 < index)
            {
                throw new IndexOutOfRangeException();
            }

            InternalList[index].Collection = null;
            InternalList.RemoveAt(index);
            InvalidateHashLookups();
        }

Same methods

NpgsqlParameterCollection::RemoveAt ( string parameterName ) : void