Class AppVersion
Comparable version information.
The typical convention is to use 3 digit version numbers major.minor.patch
,
but 1 or two digits are also supported.
If no .
is used it is interpreted as a single digit version number or as
plain alphanumeric if it couldn't be parsed as a number.
It may also have a qualifier at the end for 2 or 3 digit version numbers such as "1.2-RC1".
For 1 digit with qualifier, 1-RC1, it is interpreted as plain alphanumeric.
It has support for https://github.com/dwijnand/sbt-dynver format with +
or
-
separator. The number of commits from the tag is handled as a numeric part.
For example 1.0.0+3-73475dce26
is less than 1.0.10+10-ed316bd024
(3 < 10).
Assembly: Akka.dll
Syntax
public class AppVersion : IComparable<AppVersion>, IEquatable<AppVersion>
Fields
|
Improve this Doc
View Source
Zero
Declaration
public static readonly AppVersion Zero
Field Value
Properties
|
Improve this Doc
View Source
Version
Declaration
public string Version { get; }
Property Value
Methods
|
Improve this Doc
View Source
CompareTo(AppVersion)
Declaration
public int CompareTo(AppVersion other)
Parameters
Returns
|
Improve this Doc
View Source
Create(String)
Declaration
public static AppVersion Create(string version)
Parameters
Type |
Name |
Description |
String |
version |
|
Returns
|
Improve this Doc
View Source
Equals(AppVersion)
Declaration
public bool Equals(AppVersion other)
Parameters
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
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(AppVersion, AppVersion)
Declaration
public static bool operator ==(AppVersion first, AppVersion second)
Parameters
Returns
|
Improve this Doc
View Source
Inequality(AppVersion, AppVersion)
Declaration
public static bool operator !=(AppVersion first, AppVersion second)
Parameters
Returns
Implements
Extension Methods