Class SdkVersion
Describes an SDK version.
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:
|
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:
|
Exceptions
Type | Condition |
---|---|
ArgumentException |
|
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 |
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 |
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 |
|
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 |
|
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 |
|
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 |
|
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 |
|
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 |
|