Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    FastTrackingCollection<T> Class

    Namespace: Stride.Core.Collections
    Assembly: Stride.Core.dll

    Represents a collection that generates events when items get added or removed.

    System.Object → FastCollection<T> → FastTrackingCollection<T>
    Derived from FastTrackingCollection<T>: SceneCameraSlotCollection

    [DataSerializer(typeof(ListAllSerializer<, >), Mode = DataSerializerGenericMode.TypeAndGenericArguments)]
    public class FastTrackingCollection<T> : FastCollection<T>, IList<T>, ICollection<T>, IReadOnlyList<T>, IReadOnlyCollection<T>, IEnumerable<T>, IEnumerable
    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
    | Improve this Doc View Source

    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

    public event FastTrackingCollection<T>.FastEventHandler<FastTrackingCollectionChangedEventArgs> CollectionChanged
    Event Type
    Type Description
    FastTrackingCollection.FastEventHandler<FastTrackingCollectionChangedEventArgs>

    Inherited Members

    FastCollection<T>.Capacity
    FastCollection<T>.Count
    FastCollection<T>.Item[Int32]
    FastCollection<T>.Add(T)
    FastCollection<T>.Clear()
    FastCollection<T>.Contains(T)
    FastCollection<T>.CopyTo(T[], Int32)
    FastCollection<T>.IndexOf(T)
    FastCollection<T>.Insert(Int32, T)
    FastCollection<T>.Remove(T)
    FastCollection<T>.RemoveAt(Int32)
    FastCollection<T>.IEnumerable<T>.GetEnumerator()
    FastCollection<T>.IEnumerable.GetEnumerator()
    FastCollection<T>.AddRange<TE>(TE)
    FastCollection<T>.GetEnumerator()
    FastCollection<T>.Sort()
    FastCollection<T>.Sort(IComparer<T>)
    FastCollection<T>.Sort(Int32, Int32, IComparer<T>)
    FastCollection<T>.ICollection<T>.IsReadOnly
    FastCollection<T>.EnsureCapacity(Int32)

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    ArrayExtensions.ComputeHash<T>(ICollection<T>, IEqualityComparer<T>)
    CollectionExtensions.SwapRemove<T>(IList<T>, T)
    CollectionExtensions.SwapRemoveAt<T>(IList<T>, Int32)
    CollectionExtensions.IndexOf<T>(IReadOnlyList<T>, T)
    EnumerableExtensions.IsNullOrEmpty(IEnumerable)
    EnumerableExtensions.ForEach<T>(IEnumerable, Action<T>)
    EnumerableExtensions.ForEach<T>(IEnumerable<T>, Action<T>)
    EnumerableExtensions.IndexOf<T>(IEnumerable<T>, Func<T, Boolean>)
    EnumerableExtensions.LastIndexOf<T>(IEnumerable<T>, Func<T, Boolean>)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation