Exemplo n.º 1
0
 /// <summary>
 /// Removes the item at the specified index.
 /// </summary>
 /// <param name="index">The zero-based index of the item to remove.</param>
 /// <exception cref="T:System.ArgumentOutOfRangeException">
 /// <paramref name="index"/> is not a valid index in this list.
 /// </exception>
 /// <exception cref="T:System.NotSupportedException">
 /// This list is read-only.
 /// </exception>
 public virtual void RemoveAt(int index)
 {
     ListHelper.CheckExistingIndexArgument(this.Count, index);
     this.DoRemoveAt(index);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Inserts an item to this list at the specified index.
 /// </summary>
 /// <param name="index">The zero-based index at which <paramref name="item"/> should be inserted.</param>
 /// <param name="item">The object to insert into this list.</param>
 /// <exception cref="T:System.ArgumentOutOfRangeException">
 /// <paramref name="index"/> is not a valid index in this list.
 /// </exception>
 /// <exception cref="T:System.NotSupportedException">
 /// This list is read-only.
 /// </exception>
 public virtual void Insert(int index, T item)
 {
     ListHelper.CheckNewIndexArgument(this.Count, index);
     this.DoInsert(index, item);
 }