Class TrackableCollection<T>
An ObservableCollection<T> that raises individual item removal notifications on clear and prevents adding duplicates.
public class TrackableCollection<T> : ObservableCollection<T>, IList<T>, ICollection<T>, IReadOnlyList<T>, IReadOnlyCollection<T>, IEnumerable<T>, IList, ICollection, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged
  Type Parameters
TThe type of elements in the collection.
- Inheritance
 - 
      
      Collection<T>TrackableCollection<T>
 
- Implements
 - 
      IList<T>ICollection<T>IEnumerable<T>
 
- Inherited Members
 
Properties
HasBeenIncluded
Gets or sets whether this collection has been included yet while getting an entity graph for a data model (to prevent doing so more than once).
public bool HasBeenIncluded { get; set; }
  Property Value
Methods
ClearItems()
Clears all items.
protected override void ClearItems()
  InsertItem(int, T)
Inserts an item if it does not already exist in the collection.
protected override void InsertItem(int index, T item)
  Parameters
indexintThe index at which to insert the item.
itemTThe item to insert.