Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    AssetFolderCollection Class

    Namespace: Stride.Core.Assets
    Assembly: Stride.Core.Assets.dll

    A collection of AssetFolder

    System.Object → AssetFolderCollection
    Derived from AssetFolderCollection:

    [DataContract("AssetFolderCollection")]
    public sealed class AssetFolderCollection : IList<AssetFolder>, ICollection<AssetFolder>, IReadOnlyList<AssetFolder>, IReadOnlyCollection<AssetFolder>, IEnumerable<AssetFolder>, IEnumerable
    Name Description
    Constructors
    AssetFolderCollection()

    Initializes a new instance of the AssetFolderCollection class.

    Properties
    Count
    Item[Int32]
    Methods
    Add(AssetFolder)
    Clear()
    CloneTo(AssetFolderCollection)

    Clones this instance to the specified instance.

    Contains(AssetFolder)
    CopyTo(AssetFolder[], Int32)
    Find(UDirectory)
    GetEnumerator()
    Remove(AssetFolder)
    Explicit Interface Implementations
    ICollection<AssetFolder>.IsReadOnly
    IList<AssetFolder>.IndexOf(AssetFolder)
    IList<AssetFolder>.Insert(Int32, AssetFolder)
    IList<AssetFolder>.Item[Int32]
    IList<AssetFolder>.RemoveAt(Int32)
    IEnumerable.GetEnumerator()
    | Improve this Doc View Source

    Constructors


    AssetFolderCollection()

    Initializes a new instance of the AssetFolderCollection class.

    public AssetFolderCollection()
    | Improve this Doc View Source

    Properties


    Count

    public int Count { get; }
    Property Value
    Type Description
    System.Int32

    Item[Int32]

    public AssetFolder this[int index] { get; }
    Parameters
    Type Name Description
    System.Int32 index
    Property Value
    Type Description
    AssetFolder
    | Improve this Doc View Source

    Methods


    Add(AssetFolder)

    public void Add(AssetFolder item)
    Parameters
    Type Name Description
    AssetFolder item

    Clear()

    public void Clear()

    CloneTo(AssetFolderCollection)

    Clones this instance to the specified instance.

    public void CloneTo(AssetFolderCollection foldersTo)
    Parameters
    Type Name Description
    AssetFolderCollection foldersTo

    The folders.

    Exceptions
    Type Condition
    System.ArgumentNullException

    folders


    Contains(AssetFolder)

    public bool Contains(AssetFolder item)
    Parameters
    Type Name Description
    AssetFolder item
    Returns
    Type Description
    System.Boolean

    CopyTo(AssetFolder[], Int32)

    public void CopyTo(AssetFolder[] array, int arrayIndex)
    Parameters
    Type Name Description
    AssetFolder[] array
    System.Int32 arrayIndex

    Find(UDirectory)

    public AssetFolder Find(UDirectory folder)
    Parameters
    Type Name Description
    Stride.Core.IO.UDirectory folder
    Returns
    Type Description
    AssetFolder

    GetEnumerator()

    public IEnumerator<AssetFolder> GetEnumerator()
    Returns
    Type Description
    System.Collections.Generic.IEnumerator<AssetFolder>

    Remove(AssetFolder)

    public bool Remove(AssetFolder item)
    Parameters
    Type Name Description
    AssetFolder item
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Explicit Interface Implementations


    ICollection<AssetFolder>.IsReadOnly

    bool ICollection<AssetFolder>.IsReadOnly { get; }
    Returns
    Type Description
    System.Boolean

    IList<AssetFolder>.IndexOf(AssetFolder)

    int IList<AssetFolder>.IndexOf(AssetFolder item)
    Parameters
    Type Name Description
    AssetFolder item
    Returns
    Type Description
    System.Int32

    IList<AssetFolder>.Insert(Int32, AssetFolder)

    void IList<AssetFolder>.Insert(int index, AssetFolder item)
    Parameters
    Type Name Description
    System.Int32 index
    AssetFolder item

    IList<AssetFolder>.Item[Int32]

    AssetFolder IList<AssetFolder>.this[int index] { get; set; }
    Parameters
    Type Name Description
    System.Int32 index
    Returns
    Type Description
    AssetFolder

    IList<AssetFolder>.RemoveAt(Int32)

    void IList<AssetFolder>.RemoveAt(int index)
    Parameters
    Type Name Description
    System.Int32 index

    IEnumerable.GetEnumerator()

    IEnumerator IEnumerable.GetEnumerator()
    Returns
    Type Description
    System.Collections.IEnumerator

    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.GetItemOrNull<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>)
    EnumerableExtensions.NotNull<T>(IEnumerable<T>)
    EnumerableExtensions.ToHashCode<T>(IEnumerable<T>)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

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