object IList.this[int index] { get { return this[index]; } set { if (readOnly) { throw new NotSupportedException(); } if (index >= eventCount) { throw new IndexOutOfRangeException(); } EnsureEventsOwned(); events[index] = (EventDescriptor)value; } }