public void RemoveImmediate() { T[] removeArray = remove.array; for (int i = 0, len = remove.size; i < len; ++i) { list.Remove(removeArray[i]); } remove.Clear(); }
/// <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)); }