Table of Contents

Class TrackableCollection<T>

Namespace
Acuit.Pinpoint.Client2
Assembly
Acuit.Pinpoint.Client2.dll

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

T

The type of elements in the collection.

Inheritance
TrackableCollection<T>
Implements
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

bool

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

index int

The index at which to insert the item.

item T

The item to insert.