Table of Contents

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
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 int
item 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 int
item T

Events

CollectionChanged

Occurs when [collection changed].

public event EventHandler<TrackingCollectionChangedEventArgs> CollectionChanged

Event Type

EventHandler<TrackingCollectionChangedEventArgs>