Class TrackingCollection<T>
- Namespace
- Stride.Core.Collections
- Assembly
- Stride.Core.dll
Represents a collection that generates events when items get added or removed.
[DataSerializer(typeof(ListAllSerializer<,>), Mode = DataSerializerGenericMode.TypeAndGenericArguments)]
public class TrackingCollection<T> : FastCollection<T>, IList<T>, ICollection<T>, IReadOnlyList<T>, IReadOnlyCollection<T>, IEnumerable<T>, IEnumerable, ITrackingCollectionChanged
Type Parameters
T
The type of elements in the collection.
- Inheritance
-
TrackingCollection<T>
- Implements
-
IList<T>ICollection<T>IEnumerable<T>
- Derived
- Inherited Members
- Extension Methods
Methods
ClearItems()
protected override void ClearItems()
ClearItemsEvents()
protected void ClearItemsEvents()
InsertItem(int, T)
protected override void InsertItem(int index, T item)
Parameters
index
intitem
T
RemoveItem(int)
protected override void RemoveItem(int index)
Parameters
index
int
SetItem(int, T)
protected override void SetItem(int index, T item)
Parameters
index
intitem
T
Events
CollectionChanged
Occurs when [collection changed].
public event EventHandler<TrackingCollectionChangedEventArgs> CollectionChanged