PackageDependency Class
Namespace: Stride.Core.AssetsAssembly: Stride.Core.Assets.dll
A reference to a package either internal (directly to a Package inside the same solution) or external (to a package distributed on the store).
Derived from PackageDependency:
[DataContract("PackageDependency")]
public sealed class PackageDependency : PackageReferenceBase, IEquatable<PackageDependency>
Name | Description | |
---|---|---|
Constructors | ||
PackageDependency() | Initializes a new instance of the PackageDependency class. |
|
PackageDependency(String, PackageVersionRange) | Initializes a new instance of the PackageDependency class. |
|
Properties | ||
Name | Gets or sets the package name Id. |
|
Version | Gets or sets the version. |
|
Methods | ||
Clone() | Clones this instance. |
|
Equals(PackageDependency) | ||
Equals(Object) | ||
GetHashCode() | ||
ToString() | ||
Operators | ||
Equality(PackageDependency, PackageDependency) | ||
Inequality(PackageDependency, PackageDependency) |
Constructors
PackageDependency()
Initializes a new instance of the PackageDependency class.
public PackageDependency()
Remarks
This constructor is used only for serialization.
PackageDependency(String, PackageVersionRange)
Initializes a new instance of the PackageDependency class.
public PackageDependency(string name, PackageVersionRange version)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name. |
Stride.Core.PackageVersionRange | version | The version. |
Properties
Name
Gets or sets the package name Id.
[DataMember(10)]
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String | The name. |
Remarks
The setter should only be used during serialization.
Version
Gets or sets the version.
[DataMember(20)]
public PackageVersionRange Version { get; set; }
Property Value
Type | Description |
---|---|
Stride.Core.PackageVersionRange | The version. |
Methods
Clone()
Clones this instance.
public PackageDependency Clone()
Returns
Type | Description |
---|---|
PackageDependency | PackageDependency. |
Equals(PackageDependency)
public bool Equals(PackageDependency other)
Parameters
Type | Name | Description |
---|---|---|
PackageDependency | other |
Returns
Type | Description |
---|---|
System.Boolean |
Equals(Object)
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
System.Object.Equals(System.Object)
GetHashCode()
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
System.Object.GetHashCode()
ToString()
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.Object.ToString()
|
Improve this Doc
View Source
Operators
Equality(PackageDependency, PackageDependency)
public static bool operator ==(PackageDependency left, PackageDependency right)
Parameters
Type | Name | Description |
---|---|---|
PackageDependency | left | |
PackageDependency | right |
Returns
Type | Description |
---|---|
System.Boolean |
Inequality(PackageDependency, PackageDependency)
public static bool operator !=(PackageDependency left, PackageDependency right)
Parameters
Type | Name | Description |
---|---|---|
PackageDependency | left | |
PackageDependency | right |
Returns
Type | Description |
---|---|
System.Boolean |