TrackingCollection<T> Class
Namespace: Stride.Core.CollectionsAssembly: Stride.Core.dll
Represents a collection that generates events when items get added or removed.
Derived from TrackingCollection<T>: Scene.EntityCollection Scene.SceneCollection GameSystemCollection VirtualButtonConfig StripDefinitionCollection UIElementCollection
[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
Name | Description |
---|---|
T | The type of elements in the collection. |
Name | Description | |
---|---|---|
Methods | ||
ClearItems() | ||
ClearItemsEvents() | ||
InsertItem(Int32, T) | ||
RemoveItem(Int32) | ||
SetItem(Int32, T) | ||
Events | ||
CollectionChanged | Occurs when [collection changed]. |
Methods
ClearItems()
protected override void ClearItems()
Overrides
Stride.Core.Collections.FastCollection<T>.ClearItems()
ClearItemsEvents()
protected void ClearItemsEvents()
InsertItem(Int32, T)
protected override void InsertItem(int index, T item)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | |
T | item |
Overrides
Stride.Core.Collections.FastCollection<T>.InsertItem(System.Int32, T)
RemoveItem(Int32)
protected override void RemoveItem(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index |
Overrides
Stride.Core.Collections.FastCollection<T>.RemoveItem(System.Int32)
SetItem(Int32, T)
protected override void SetItem(int index, T item)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | |
T | item |
Overrides
Stride.Core.Collections.FastCollection<T>.SetItem(System.Int32, T)
|
Improve this Doc
View Source
Events
CollectionChanged
Occurs when [collection changed].
public event EventHandler<TrackingCollectionChangedEventArgs> CollectionChanged
Event Type
Type | Description |
---|---|
System.EventHandler<TrackingCollectionChangedEventArgs> |