Class Version
Assembly: SemVer.dll
Syntax
[Obsolete("Use Hive.Versioning.Version instead.")]
public class Version : IComparable<Version>, IComparable<Hive.Versioning.Version>, IComparable, IEquatable<Version>, IEquatable<Hive.Versioning.Version>
Constructors
|
Improve this Doc
View Source
Version(Int32, Int32, Int32, String, String)
Declaration
public Version(int major, int minor, int patch, string preRelease = null, string build = null)
Parameters
|
Improve this Doc
View Source
Version(String, Boolean)
Declaration
public Version(string input, bool loose = false)
Parameters
Properties
|
Improve this Doc
View Source
Build
Declaration
public string Build { get; }
Property Value
|
Improve this Doc
View Source
Major
Declaration
public int Major { get; }
Property Value
|
Improve this Doc
View Source
Minor
Declaration
public int Minor { get; }
Property Value
|
Improve this Doc
View Source
Patch
Declaration
public int Patch { get; }
Property Value
|
Improve this Doc
View Source
PreRelease
Declaration
public string PreRelease { get; }
Property Value
|
Improve this Doc
View Source
UnderlyingVersion
Declaration
public Hive.Versioning.Version UnderlyingVersion { get; }
Property Value
Type |
Description |
Hive.Versioning.Version |
|
Methods
|
Improve this Doc
View Source
BaseVersion()
Declaration
public Version BaseVersion()
Returns
|
Improve this Doc
View Source
Clean()
Declaration
Returns
|
Improve this Doc
View Source
CompareTo(Version)
Declaration
public int CompareTo(Version other)
Parameters
Type |
Name |
Description |
Version |
other |
|
Returns
|
Improve this Doc
View Source
CompareTo(Nullable<Hive.Versioning.Version>)
Declaration
public int CompareTo(Hive.Versioning.Version? other)
Parameters
Type |
Name |
Description |
Nullable<Hive.Versioning.Version> |
other |
|
Returns
|
Improve this Doc
View Source
CompareTo(Object)
Declaration
public int CompareTo(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
|
Improve this Doc
View Source
Equals(Version)
Declaration
public bool Equals(Version other)
Parameters
Type |
Name |
Description |
Version |
other |
|
Returns
|
Improve this Doc
View Source
Equals(Nullable<Hive.Versioning.Version>)
Declaration
public bool Equals(Hive.Versioning.Version? other)
Parameters
Type |
Name |
Description |
Nullable<Hive.Versioning.Version> |
other |
|
Returns
|
Improve this Doc
View Source
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
Overrides
|
Improve this Doc
View Source
ForHiveVersion(Hive.Versioning.Version)
Declaration
public static Version ForHiveVersion(Hive.Versioning.Version real)
Parameters
Type |
Name |
Description |
Hive.Versioning.Version |
real |
|
Returns
|
Improve this Doc
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
|
Improve this Doc
View Source
Equality(Version, Version)
Declaration
public static bool operator ==(Version a, Version b)
Parameters
Returns
|
Improve this Doc
View Source
GreaterThan(Version, Version)
Declaration
public static bool operator>(Version a, Version b)
Parameters
Returns
|
Improve this Doc
View Source
GreaterThanOrEqual(Version, Version)
Declaration
public static bool operator >=(Version a, Version b)
Parameters
Returns
|
Improve this Doc
View Source
Inequality(Version, Version)
Declaration
public static bool operator !=(Version a, Version b)
Parameters
Returns
|
Improve this Doc
View Source
LessThan(Version, Version)
Declaration
public static bool operator <(Version a, Version b)
Parameters
Returns
|
Improve this Doc
View Source
LessThanOrEqual(Version, Version)
Declaration
public static bool operator <=(Version a, Version b)
Parameters
Returns
Implements
Extension Methods