Пример #1
0
 //
 // Summary:
 //     Inserts an element into the System.Collections.Generic.List<T> at the specified
 //     index.
 //
 // Parameters:
 //   index:
 //     The zero-based index at which item should be inserted.
 //
 //   item:
 //     The object to insert. The value can be null for reference types.
 //
 // Exceptions:
 //   System.ArgumentOutOfRangeException:
 //     index is less than 0.  -or- index is greater than System.Collections.Generic.List<T>.Count.
 public override void Insert(int index, T1 item)
 {
     if (!IsItemNull(item))
     {
         _innerList.Insert(index, item);
     }
 }
Пример #2
0
 //
 // Summary:
 //     Inserts an element into the System.Collections.Generic.List<T> at the specified
 //     index.
 //
 // Parameters:
 //   index:
 //     The zero-based index at which item should be inserted.
 //
 //   item:
 //     The object to insert. The value can be null for reference types.
 //
 // Exceptions:
 //   System.ArgumentOutOfRangeException:
 //     index is less than 0.  -or- index is greater than System.Collections.Generic.List<T>.Count.
 public override void Insert(int index, T1 item)
 {
     if (IsItemUnique(item))
     {
         _innerList.Insert(index, item);
     }
 }