Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    AssetPartCollection<TAssetPartDesign, TAssetPart> Class

    Namespace: Stride.Core.Assets
    Assembly: Stride.Core.Assets.dll
    System.Object → System.Collections.Generic.SortedList<System.Guid, TAssetPartDesign> → AssetPartCollection<TAssetPartDesign, TAssetPart>
    Derived from AssetPartCollection<TAssetPartDesign, TAssetPart>:

    [DataSerializer(typeof(AssetPartCollectionSerializer<, >), Mode = DataSerializerGenericMode.GenericArguments)]
    public sealed class AssetPartCollection<TAssetPartDesign, TAssetPart> : SortedList<Guid, TAssetPartDesign>, IDictionary<Guid, TAssetPartDesign>, ICollection<KeyValuePair<Guid, TAssetPartDesign>>, IDictionary, ICollection, IReadOnlyDictionary<Guid, TAssetPartDesign>, IReadOnlyCollection<KeyValuePair<Guid, TAssetPartDesign>>, IEnumerable<KeyValuePair<Guid, TAssetPartDesign>>, IEnumerable where TAssetPartDesign : IAssetPartDesign<TAssetPart> where TAssetPart : IIdentifiable
    Type Parameters
    Name Description
    TAssetPartDesign
    TAssetPart
    Name Description
    Methods
    Add(TAssetPartDesign)
    Add(KeyValuePair<Guid, TAssetPartDesign>)
    RefreshKeys()

    Refreshes the keys of this collection. Must be called if some ids of the contained parts have changed.

    | Improve this Doc View Source

    Methods


    Add(TAssetPartDesign)

    public void Add(TAssetPartDesign part)
    Parameters
    Type Name Description
    TAssetPartDesign part

    Add(KeyValuePair<Guid, TAssetPartDesign>)

    public void Add(KeyValuePair<Guid, TAssetPartDesign> part)
    Parameters
    Type Name Description
    System.Collections.Generic.KeyValuePair<System.Guid, TAssetPartDesign> part

    RefreshKeys()

    Refreshes the keys of this collection. Must be called if some ids of the contained parts have changed.

    public void RefreshKeys()

    Inherited Members

    System.Collections.Generic.SortedList<System.Guid, TAssetPartDesign>.Add(System.Guid, TAssetPartDesign)
    System.Collections.Generic.SortedList<System.Guid, TAssetPartDesign>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.Guid, TAssetPartDesign>>.Add(System.Collections.Generic.KeyValuePair<System.Guid, TAssetPartDesign>)
    System.Collections.Generic.SortedList<System.Guid, TAssetPartDesign>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.Guid, TAssetPartDesign>>.Contains(System.Collections.Generic.KeyValuePair<System.Guid, TAssetPartDesign>)
    System.Collections.Generic.SortedList<System.Guid, TAssetPartDesign>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.Guid, TAssetPartDesign>>.Remove(System.Collections.Generic.KeyValuePair<System.Guid, TAssetPartDesign>)
    System.Collections.Generic.SortedList<System.Guid, TAssetPartDesign>.System.Collections.IDictionary.Add(System.Object, System.Object)
    System.Collections.Generic.SortedList<System.Guid, TAssetPartDesign>.Clear()
    System.Collections.Generic.SortedList<System.Guid, TAssetPartDesign>.System.Collections.IDictionary.Contains(System.Object)
    System.Collections.Generic.SortedList<System.Guid, TAssetPartDesign>.ContainsKey(System.Guid)
    System.Collections.Generic.SortedList<System.Guid, TAssetPartDesign>.ContainsValue(TAssetPartDesign)
    System.Collections.Generic.SortedList<System.Guid, TAssetPartDesign>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.Guid, TAssetPartDesign>>.CopyTo(System.Collections.Generic.KeyValuePair<System.Guid, TAssetPartDesign>[], System.Int32)
    System.Collections.Generic.SortedList<System.Guid, TAssetPartDesign>.System.Collections.ICollection.CopyTo(System.Array, System.Int32)
    System.Collections.Generic.SortedList<System.Guid, TAssetPartDesign>.GetEnumerator()
    System.Collections.Generic.SortedList<System.Guid, TAssetPartDesign>.System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.Guid, TAssetPartDesign>>.GetEnumerator()
    System.Collections.Generic.SortedList<System.Guid, TAssetPartDesign>.System.Collections.IDictionary.GetEnumerator()
    System.Collections.Generic.SortedList<System.Guid, TAssetPartDesign>.System.Collections.IEnumerable.GetEnumerator()
    System.Collections.Generic.SortedList<System.Guid, TAssetPartDesign>.System.Collections.IDictionary.get_Item(System.Object)
    System.Collections.Generic.SortedList<System.Guid, TAssetPartDesign>.System.Collections.IDictionary.set_Item(System.Object, System.Object)
    System.Collections.Generic.SortedList<System.Guid, TAssetPartDesign>.IndexOfKey(System.Guid)
    System.Collections.Generic.SortedList<System.Guid, TAssetPartDesign>.IndexOfValue(TAssetPartDesign)
    System.Collections.Generic.SortedList<System.Guid, TAssetPartDesign>.TryGetValue(System.Guid, TAssetPartDesign)
    System.Collections.Generic.SortedList<System.Guid, TAssetPartDesign>.RemoveAt(System.Int32)
    System.Collections.Generic.SortedList<System.Guid, TAssetPartDesign>.Remove(System.Guid)
    System.Collections.Generic.SortedList<System.Guid, TAssetPartDesign>.System.Collections.IDictionary.Remove(System.Object)
    System.Collections.Generic.SortedList<System.Guid, TAssetPartDesign>.TrimExcess()
    System.Collections.Generic.SortedList<System.Guid, TAssetPartDesign>.Capacity
    System.Collections.Generic.SortedList<System.Guid, TAssetPartDesign>.Comparer
    System.Collections.Generic.SortedList<System.Guid, TAssetPartDesign>.Count
    System.Collections.Generic.SortedList<System.Guid, TAssetPartDesign>.Keys
    System.Collections.Generic.SortedList<System.Guid, TAssetPartDesign>.System.Collections.Generic.IDictionary<System.Guid, TAssetPartDesign>.Keys
    System.Collections.Generic.SortedList<System.Guid, TAssetPartDesign>.System.Collections.IDictionary.Keys
    System.Collections.Generic.SortedList<System.Guid, TAssetPartDesign>.System.Collections.Generic.IReadOnlyDictionary<System.Guid, TAssetPartDesign>.Keys
    System.Collections.Generic.SortedList<System.Guid, TAssetPartDesign>.Values
    System.Collections.Generic.SortedList<System.Guid, TAssetPartDesign>.System.Collections.Generic.IDictionary<System.Guid, TAssetPartDesign>.Values
    System.Collections.Generic.SortedList<System.Guid, TAssetPartDesign>.System.Collections.IDictionary.Values
    System.Collections.Generic.SortedList<System.Guid, TAssetPartDesign>.System.Collections.Generic.IReadOnlyDictionary<System.Guid, TAssetPartDesign>.Values
    System.Collections.Generic.SortedList<System.Guid, TAssetPartDesign>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.Guid, TAssetPartDesign>>.IsReadOnly
    System.Collections.Generic.SortedList<System.Guid, TAssetPartDesign>.System.Collections.IDictionary.IsReadOnly
    System.Collections.Generic.SortedList<System.Guid, TAssetPartDesign>.System.Collections.IDictionary.IsFixedSize
    System.Collections.Generic.SortedList<System.Guid, TAssetPartDesign>.System.Collections.ICollection.IsSynchronized
    System.Collections.Generic.SortedList<System.Guid, TAssetPartDesign>.System.Collections.ICollection.SyncRoot
    System.Collections.Generic.SortedList<System.Guid, TAssetPartDesign>.Item[System.Guid]
    System.Collections.Generic.SortedList<System.Guid, TAssetPartDesign>.System.Collections.IDictionary.Item[System.Object]

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    ArrayExtensions.ComputeHash<T>(ICollection<T>, IEqualityComparer<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