/// <summary> /// 移除 <see cref="ArrayAdapter{T}"/> 的指定索引处的元素。 /// </summary> /// <param name="index">要移除的元素的从零开始的索引。</param> protected override void RemoveItem(int index) { throw CommonExceptions.CollectionFixedSize(); }
/// <summary> /// 从 <see cref="ArrayAdapter{T}"/> 中移除所有元素。此实现总是引发 <see cref="NotSupportedException"/>。 /// </summary> /// <exception cref="NotSupportedException">总是引发。</exception> public override void Clear() { throw CommonExceptions.CollectionFixedSize(); }
/// <summary> /// 将元素插入 <see cref="ArrayAdapter{T}"/> 的指定索引处。 /// </summary> /// <param name="index">从零开始的索引,应在该位置插入 <paramref name="item"/>。</param> /// <param name="item">要插入的对象。</param> protected override void InsertItem(int index, T item) { throw CommonExceptions.CollectionFixedSize(); }