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;
}
}