Struct PackageId
Assembly: solution.dll
Syntax
Constructors
PackageId(Json)
Declaration
public PackageId(Json manifest)
Parameters
Type |
Name |
Description |
Json |
manifest |
|
PackageId(string)
Declaration
public PackageId(string id)
Parameters
Type |
Name |
Description |
string |
id |
|
PackageId(string, string)
Declaration
public PackageId(string name, string version)
Parameters
Fields
UnityModuleNamePrefix
Declaration
public const string UnityModuleNamePrefix = "com.unity.modules."
Field Value
ValidName
Declaration
public static readonly Regex ValidName
Field Value
ValidSemVer
Declaration
public static readonly Regex ValidSemVer
Field Value
Properties
Id
Declaration
public string Id { get; }
Property Value
Name
Declaration
public string Name { get; }
Property Value
Version
Declaration
public string Version { get; }
Property Value
Methods
Equals(PackageId)
Declaration
public bool Equals(PackageId other)
Parameters
Returns
Equals(object)
Indicates whether this instance and a specified object are equal.
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
object |
obj |
The object to compare with the current instance.
|
Returns
Type |
Description |
bool |
true if obj and this instance are the same type and represent the same value; otherwise, false.
|
Overrides
GetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type |
Description |
int |
A 32-bit signed integer that is the hash code for this instance.
|
Overrides
ToString()
Returns the fully qualified type name of this instance.
Declaration
public override string ToString()
Returns
Type |
Description |
string |
The fully qualified type name.
|
Overrides
Operators
operator ==(PackageId, PackageId)
Declaration
public static bool operator ==(PackageId left, PackageId right)
Parameters
Returns
operator !=(PackageId, PackageId)
Declaration
public static bool operator !=(PackageId left, PackageId right)
Parameters
Returns