Exemple #1
0
 public void RemoveImmediate()
 {
     T[] removeArray = remove.array;
     for (int i = 0, len = remove.size; i < len; ++i)
     {
         list.Remove(removeArray[i]);
     }
     remove.Clear();
 }
Exemple #2
0
 /// <summary>
 /// Adds the element to the list. Returns false if the element already existed and wasn't added.
 /// </summary>
 public bool Add(T element)
 {
     remove.Remove(element);
     return(list.Add(element));
 }