Search Results for

    Show / Hide Table of Contents

    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).

    Inheritance
    object
    AppVersion
    Implements
    IComparable<AppVersion>
    IEquatable<AppVersion>
    Inherited Members
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: Akka.Util
    Assembly: Akka.dll
    Syntax
    public class AppVersion : IComparable<AppVersion>, IEquatable<AppVersion>

    Fields

    | Edit this page View Source

    Zero

    Declaration
    public static readonly AppVersion Zero
    Field Value
    Type Description
    AppVersion

    Properties

    | Edit this page View Source

    Version

    Declaration
    public string Version { get; }
    Property Value
    Type Description
    string

    Methods

    | Edit this page View Source

    CompareTo(AppVersion)

    Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.

    Declaration
    public int CompareTo(AppVersion other)
    Parameters
    Type Name Description
    AppVersion other

    An object to compare with this instance.

    Returns
    Type Description
    int

    A value that indicates the relative order of the objects being compared. The return value has these meanings:

    Value Meaning
    Less than zero This instance precedes other in the sort order.
    Zero This instance occurs in the same position in the sort order as other.
    Greater than zero This instance follows other in the sort order.
    | Edit this page View Source

    Create(string)

    Declaration
    public static AppVersion Create(string version)
    Parameters
    Type Name Description
    string version
    Returns
    Type Description
    AppVersion
    | Edit this page View Source

    Equals(AppVersion)

    Indicates whether the current object is equal to another object of the same type.

    Declaration
    public bool Equals(AppVersion other)
    Parameters
    Type Name Description
    AppVersion other

    An object to compare with this object.

    Returns
    Type Description
    bool

    true if the current object is equal to the other parameter; otherwise, false.

    | Edit this page View Source

    Equals(object)

    Determines whether the specified object is equal to the current object.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    object obj

    The object to compare with the current object.

    Returns
    Type Description
    bool

    true if the specified object is equal to the current object; otherwise, false.

    Overrides
    object.Equals(object)
    | Edit this page View Source

    GetHashCode()

    Serves as the default hash function.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    A hash code for the current object.

    Overrides
    object.GetHashCode()
    | Edit this page View Source

    ToString()

    Returns a string that represents the current object.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    A string that represents the current object.

    Overrides
    object.ToString()

    Operators

    | Edit this page View Source

    operator ==(AppVersion, AppVersion)

    Declaration
    public static bool operator ==(AppVersion first, AppVersion second)
    Parameters
    Type Name Description
    AppVersion first
    AppVersion second
    Returns
    Type Description
    bool
    | Edit this page View Source

    operator !=(AppVersion, AppVersion)

    Declaration
    public static bool operator !=(AppVersion first, AppVersion second)
    Parameters
    Type Name Description
    AppVersion first
    AppVersion second
    Returns
    Type Description
    bool

    Implements

    IComparable<T>
    IEquatable<T>

    Extension Methods

    ObjectExtensions.IsDefaultForType<T>(T)
    ObjectExtensions.AsOption<T>(T)
    Extensions.AsInstanceOf<T>(object)
    In this article
    • githubEdit this page
    • View Source
    Back to top
    Contribute
    • Project Chat
    • Discussion Forum
    • Source Code
    Support
    • Akka.NET Support Plans
    • Akka.NET Observability Tools
    • Akka.NET Training & Consulting
    Maintained By
    • Petabridge - The Akka.NET Company
    • Learn Akka.NET