Class Version
Inheritance
System.Object
Version
Implements
System.IComparable<Hive.Versioning.Version>
System.IComparable
System.IEquatable<Hive.Versioning.Version>
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
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
Type |
Name |
Description |
System.Int32 |
major |
|
System.Int32 |
minor |
|
System.Int32 |
patch |
|
System.String |
preRelease |
|
System.String |
build |
|
|
Improve this Doc
View Source
Version(String, Boolean)
Declaration
public Version(string input, bool loose = false)
Parameters
Type |
Name |
Description |
System.String |
input |
|
System.Boolean |
loose |
|
Properties
|
Improve this Doc
View Source
Build
Declaration
public string Build { get; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Major
Declaration
public int Major { get; }
Property Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Minor
Declaration
public int Minor { get; }
Property Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Patch
Declaration
public int Patch { get; }
Property Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
PreRelease
Declaration
public string PreRelease { get; }
Property Value
Type |
Description |
System.String |
|
|
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
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
CompareTo(Version)
Declaration
public int CompareTo(Version other)
Parameters
Type |
Name |
Description |
Version |
other |
|
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
CompareTo(Nullable<Hive.Versioning.Version>)
Declaration
public int CompareTo(Hive.Versioning.Version? other)
Parameters
Type |
Name |
Description |
System.Nullable<Hive.Versioning.Version> |
other |
|
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
CompareTo(Object)
Declaration
public int CompareTo(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Equals(Version)
Declaration
public bool Equals(Version other)
Parameters
Type |
Name |
Description |
Version |
other |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Equals(Nullable<Hive.Versioning.Version>)
Declaration
public bool Equals(Hive.Versioning.Version? other)
Parameters
Type |
Name |
Description |
System.Nullable<Hive.Versioning.Version> |
other |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Equals(Object)
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)
|
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
Type |
Description |
System.Int32 |
|
Overrides
System.Object.GetHashCode()
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.Object.ToString()
Operators
|
Improve this Doc
View Source
Equality(Version, Version)
Declaration
public static bool operator ==(Version a, Version b)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
GreaterThan(Version, Version)
Declaration
public static bool operator>(Version a, Version b)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
GreaterThanOrEqual(Version, Version)
Declaration
public static bool operator >=(Version a, Version b)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Inequality(Version, Version)
Declaration
public static bool operator !=(Version a, Version b)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
LessThan(Version, Version)
Declaration
public static bool operator <(Version a, Version b)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
LessThanOrEqual(Version, Version)
Declaration
public static bool operator <=(Version a, Version b)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Implements
System.IComparable<T>
System.IComparable<T>
System.IComparable
System.IEquatable<T>
System.IEquatable<T>
Extension Methods