Npgsql.NpgsqlParameterCollection.this C# (CSharp) Method

this() private method

private this ( string parameterName ) : Npgsql.NpgsqlParameter
parameterName string
return Npgsql.NpgsqlParameter
        public new NpgsqlParameter this[string parameterName]
        {
            get
            {
                NpgsqlEventLog.LogIndexerGet(LogLevel.Debug, CLASSNAME, parameterName);
                int index = IndexOf(parameterName);

                if (index == -1)
                {
                    throw new IndexOutOfRangeException("Parameter not found");
                }

                return this.InternalList[index];
            }
            set
            {
                NpgsqlEventLog.LogIndexerSet(LogLevel.Debug, CLASSNAME, parameterName, value);
                int index = IndexOf(parameterName);

                if (index == -1)
                {
                    throw new IndexOutOfRangeException("Parameter not found");
                }

                NpgsqlParameter oldValue = this.InternalList[index];

                if (value.CleanName != oldValue.CleanName)
                {
                    InvalidateHashLookups();
                }

                this.InternalList[index] = value;
            }
        }

Same methods

NpgsqlParameterCollection::this ( int index ) : Npgsql.NpgsqlParameter