public virtual FieldInfo this[int index]
{
get
{
if (index < 0)
throw new ArgumentOutOfRangeException("index", index, "Argument cannot be negative.");
if (index >= _data.Count)
throw new ArgumentOutOfRangeException("index", index, "Argument must be less than Count.");
return _data.Items[index];
}
set
{
if (index < 0)
throw new ArgumentOutOfRangeException("index", index, "Argument cannot be negative.");
if (index >= _data.Count)
throw new ArgumentOutOfRangeException("index", index, "Argument must be less than Count.");
if (_data.IsUnique) CheckUnique(value, index);
_data.Items[index] = value;
}
}