Search Results for

    Show / Hide Table of Contents

    Class SdkVersion

    Describes an SDK version.

    Inheritance
    Object
    SdkVersion
    Implements
    IEquatable<SdkVersion>
    IComparable<SdkVersion>
    IComparable
    Namespace: Colore.Data
    Assembly: Colore.dll
    Syntax
    public sealed class SdkVersion : ValueType

    Constructors

    SdkVersion(Int32, Int32, Int32)

    Initializes a new instance of the SdkVersion struct.

    Declaration
    public SdkVersion(int major, int minor, int revision)
    Parameters
    Type Name Description
    Int32 major

    The major component of the version.

    Int32 minor

    The minor component of the version.

    Int32 revision

    The revision component of the version.

    Properties

    Major

    Gets the major part of the version.

    Declaration
    public int Major { get; }
    Property Value
    Type Description
    Int32

    Minor

    Gets the minor part of the version.

    Declaration
    public int Minor { get; }
    Property Value
    Type Description
    Int32

    Revision

    Gets the revision part of the version.

    Declaration
    public int Revision { get; }
    Property Value
    Type Description
    Int32

    Methods

    CompareTo(SdkVersion)

    Compares the current object with another object of the same type.

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

    An object to compare with this object.

    Returns
    Type Description
    Int32

    A 32-bit signed integer that indicates the relative order of the objects being compared. The return value has the following meanings:

    Less than zeroThis object is less than the other parameter
    ZeroThis object is equal to other
    Greater than zeroThis object is greater than other

    CompareTo(Object)

    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(object obj)
    Parameters
    Type Name Description
    Object obj

    An object to compare with this instance.

    Returns
    Type Description
    Int32

    A 32-bit signed integer that indicates the relative order of the objects being compared. The return value has these meanings:

    Less than zeroThis object is less than the obj parameter
    ZeroThis object is equal to obj
    Greater than zeroThis object is greater than obj

    Exceptions
    Type Condition
    ArgumentException

    obj is not the same type as this instance.

    Equals(SdkVersion)

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

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

    An object to compare with this object.

    Returns
    Type Description
    Boolean

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

    Equals(Object)

    Indicates whether this instance and a specified object are equal.

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

    Another object to compare to.

    Returns
    Type Description
    Boolean

    true if obj and this instance are the same type and represent the same value; otherwise, false.

    GetHashCode()

    Returns the hash code for this instance.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32

    A 32-bit signed integer that is the hash code for this instance.

    ToString()

    Returns the string representation of this SDK version.

    Declaration
    public override string ToString()
    Returns
    Type Description
    String

    A String representing this struct instance.

    Operators

    Equality(SdkVersion, Object)

    Compares an instance of SdkVersion with another object for equality.

    Declaration
    public static bool operator ==(SdkVersion left, object right)
    Parameters
    Type Name Description
    SdkVersion left

    The left operand, an instance of SdkVersion.

    Object right

    The right operand, any type of object.

    Returns
    Type Description
    Boolean

    true if the two objects are equal, otherwise false.

    GreaterThan(SdkVersion, Object)

    Checks if an instance of SdkVersion is considered greater than another object.

    Declaration
    public static bool operator>(SdkVersion left, object right)
    Parameters
    Type Name Description
    SdkVersion left

    The left operand, an instance of SdkVersion.

    Object right

    The right operand, any type of object.

    Returns
    Type Description
    Boolean

    true if left is greater than right, otherwise false.

    GreaterThanOrEqual(SdkVersion, Object)

    Checks if an instance of SdkVersion is considered to be greater than or equal to another object.

    Declaration
    public static bool operator >=(SdkVersion left, object right)
    Parameters
    Type Name Description
    SdkVersion left

    The left operand, an instance of SdkVersion.

    Object right

    The right operand, any type of object.

    Returns
    Type Description
    Boolean

    true if left is greater than or equal to right, otherwise false.

    Inequality(SdkVersion, Object)

    Compares an instance of SdkVersion with another object for inequality.

    Declaration
    public static bool operator !=(SdkVersion left, object right)
    Parameters
    Type Name Description
    SdkVersion left

    The left operand, an instance of SdkVersion.

    Object right

    The right operand, any type of object.

    Returns
    Type Description
    Boolean

    true if the two objects are not equal, otherwise false.

    LessThan(SdkVersion, Object)

    Checks if an instance of SdkVersion is considered less than another object.

    Declaration
    public static bool operator <(SdkVersion left, object right)
    Parameters
    Type Name Description
    SdkVersion left

    The left operand, an instance of SdkVersion.

    Object right

    The right operand, any type of object.

    Returns
    Type Description
    Boolean

    true if left is less than right, otherwise false.

    LessThanOrEqual(SdkVersion, Object)

    Checks if an instance of SdkVersion is considered to be less than or equal to another object.

    Declaration
    public static bool operator <=(SdkVersion left, object right)
    Parameters
    Type Name Description
    SdkVersion left

    The left operand, an instance of SdkVersion.

    Object right

    The right operand, any type of object.

    Returns
    Type Description
    Boolean

    true if left is less than or equal to right, otherwise false.

    Implements

    System.IEquatable<T>
    System.IComparable<T>
    System.IComparable
    In This Article
    Back to top Copyright © 2015-2022 by Adam Hellberg and Brandon Scott
    Generated by DocFX