PackageCollection Class
Namespace: Stride.Core.AssetsAssembly: Stride.Core.Assets.dll
A collection of Package.
[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() |
Constructors
PackageCollection()
Initializes a new instance of the PackageCollection class.
public PackageCollection()
Properties
Count
public int Count { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
IsReadOnly
public bool IsReadOnly { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
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 |
Events
CollectionChanged
Occurs when the collection changes.
public event NotifyCollectionChangedEventHandler CollectionChanged
Event Type
Type | Description |
---|---|
System.Collections.Specialized.NotifyCollectionChangedEventHandler |
Explicit Interface Implementations
IEnumerable.GetEnumerator()
IEnumerator IEnumerable.GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.IEnumerator |