Class Dependency
Representation of the manifest file "dependency" entry.
Inheritance
System.Object
Dependency
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: StansAssets.Foundation.Editor
Assembly: cs.temp.dll.dll
Syntax
public class Dependency
Constructors
Dependency(String)
Initializes a new instance of the Dependency class with provided properties.
Declaration
public Dependency(string fullName)
Parameters
Type | Name | Description |
---|---|---|
System.String | fullName | Dependency full name which contains name and version (e.g. 'com.company.package@1.0.0'). |
Dependency(String, String)
Initializes a new instance of the Dependency class with provided properties.
Declaration
public Dependency(string name, string version)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Dependency name. |
System.String | version | Dependency version. |
Properties
HasSemanticVersion
true
if the Dependency has SemanticVersion; otherwise, false
.
Declaration
public bool HasSemanticVersion { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Name
The Dependency name.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
SemanticVersion
The Dependency semantic version.
Declaration
public SemanticVersion SemanticVersion { get; }
Property Value
Type | Description |
---|---|
SemanticVersion |
Version
The Dependency version.
Declaration
public string Version { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
SetVersion(String)
Sets new dependency version.
Declaration
public void SetVersion(string version)
Parameters
Type | Name | Description |
---|---|---|
System.String | version | The version to be set for this dependency |
ToDictionary()
Creates a dictionary from this object.
Declaration
public Dictionary<string, object> ToDictionary()
Returns
Type | Description |
---|---|
Dictionary<System.String, System.Object> | Dependency object representation as Dictionary<string, object>. |