Class Metabank.BinCatalog.PackageInfo
Provides information about binary package that includes: name, platform, os, version
Inheritance
System.Object
Metabank.BinCatalog.PackageInfo
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: Azos.Sky.dll
public sealed class PackageInfo
Constructors
Declaration
public PackageInfo(string name, string version, string platform = "any", string os = "any")
Parameters
Type |
Name |
Description |
System.String |
name |
|
System.String |
version |
|
System.String |
platform |
|
System.String |
os |
|
Fields
Declaration
public const string ANY = "any"
Field Value
Type |
Description |
System.String |
|
Name portion of the package. Note: Name alone DOES NOT uniquely identify package in the catalog
Declaration
public readonly string Name
Field Value
Type |
Description |
System.String |
|
Declaration
public readonly string OS
Field Value
Type |
Description |
System.String |
|
Declaration
public readonly string Platform
Field Value
Type |
Description |
System.String |
|
Declaration
public readonly string Version
Field Value
Type |
Description |
System.String |
|
Properties
Returns metabase directory full name that this item was constructed from
Declaration
public string FullName { get; }
Property Value
Type |
Description |
System.String |
|
Declaration
public bool IsAnyOS { get; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool IsAnyPlatform { get; }
Property Value
Type |
Description |
System.Boolean |
|
Returns relative specificity score - the more specific this definition is the higher is the score.
Used for match comparison - finding better matches taking platform and OS into consideration
Declaration
public int Specificity { get; }
Property Value
Type |
Description |
System.Int32 |
|
Methods
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.Object.Equals(System.Object)
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.Object.GetHashCode()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.Object.ToString()
Extension Methods