110,536
社区成员
发帖
与我相关
我的任务
分享
public T this[int index]
{
get
{
lock (this.sync)
{
return this.items[index];
}
}
set
{
lock (this.sync)
{
if ((index < 0) || (index >= this.items.Count))
{
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("index", index, SR.GetString("ValueMustBeInRange", new object[] { 0, this.items.Count - 1 })));
}
this.SetItem(index, value);
}
}
}