Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    PackageCollection Class

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

    A collection of Package.

    System.Object → PackageCollection
    Derived from PackageCollection:

    [DataContract("PackageCollection")]
    public sealed class PackageCollection : ICollection<Package>, IReadOnlyPackageCollection, IReadOnlyCollection<Package>, IEnumerable<Package>, IEnumerable, INotifyCollectionChanged
    Name Description
    Constructors
    PackageCollection()

    Initializes a new instance of the PackageCollection class.

    Properties
    Count
    IsReadOnly
    Methods
    Add(Package)
    Clear()
    Contains(Package)
    CopyTo(Package[], Int32)
    Find(Dependency)

    Finds the a package already in this collection from the specified dependency.

    Find(PackageDependency)

    Finds the a package already in this collection from the specified dependency.

    Find(String, PackageVersionRange)

    Finds a package with the specified name and Stride.Core.PackageVersionRange.

    GetEnumerator()
    Remove(Package)
    Events
    CollectionChanged

    Occurs when the collection changes.

    Explicit Interface Implementations
    IEnumerable.GetEnumerator()
    | Improve this Doc View Source

    Constructors


    PackageCollection()

    Initializes a new instance of the PackageCollection class.

    public PackageCollection()
    | Improve this Doc View Source

    Properties


    Count

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

    IsReadOnly

    public bool IsReadOnly { get; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Methods


    Add(Package)

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

    Clear()

    public void Clear()

    Contains(Package)

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

    CopyTo(Package[], Int32)

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

    Find(Dependency)

    Finds the a package already in this collection from the specified dependency.

    public Package Find(Dependency dependency)
    Parameters
    Type Name Description
    Dependency dependency
    Returns
    Type Description
    Package

    Package.


    Find(PackageDependency)

    Finds the a package already in this collection from the specified dependency.

    public Package Find(PackageDependency packageDependency)
    Parameters
    Type Name Description
    PackageDependency packageDependency

    The package dependency.

    Returns
    Type Description
    Package

    Package.


    Find(String, PackageVersionRange)

    Finds a package with the specified name and Stride.Core.PackageVersionRange.

    public Package Find(string name, PackageVersionRange versionRange)
    Parameters
    Type Name Description
    System.String name

    The name.

    Stride.Core.PackageVersionRange versionRange

    The version range.

    Returns
    Type Description
    Package

    Package.


    GetEnumerator()

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

    Remove(Package)

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

    Events


    CollectionChanged

    Occurs when the collection changes.

    public event NotifyCollectionChangedEventHandler CollectionChanged
    Event Type
    Type Description
    System.Collections.Specialized.NotifyCollectionChangedEventHandler
    | Improve this Doc View Source

    Explicit Interface Implementations


    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>)
    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>)
    PackageExtensions.ContainsAsset(IEnumerable<Package>, AssetId)
    PackageExtensions.ContainsAsset(IEnumerable<Package>, UFile)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

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