Edit

Share via


MajorMinorVersion Struct

Definition

Represents a version with two components, a major (most-significant) component, and a minor (least-significant) component.

[Orleans.GenerateSerializer]
[Orleans.Immutable]
[System.Serializable]
public readonly struct MajorMinorVersion : IComparable<Orleans.Metadata.MajorMinorVersion>, IEquatable<Orleans.Metadata.MajorMinorVersion>
[<Orleans.GenerateSerializer>]
[<Orleans.Immutable>]
[<System.Serializable>]
type MajorMinorVersion = struct
Public Structure MajorMinorVersion
Implements IComparable(Of MajorMinorVersion), IEquatable(Of MajorMinorVersion)
Inheritance
MajorMinorVersion
Attributes
Implements

Constructors

MajorMinorVersion(Int64, Int64)

Initializes a new instance of the MajorMinorVersion struct.

Properties

Major

Gets the most significant version component.

Minor

Gets the least significant version component.

MinValue

Gets the minimum value.

Zero

Gets the zero value.

Methods

CompareTo(MajorMinorVersion)

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.

Equals(MajorMinorVersion)

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

Equals(Object)

Indicates whether this instance and a specified object are equal.

GetHashCode()

Returns the hash code for this instance.

Parse(String)

Parses a MajorMinorVersion.

ToString()

Returns the fully qualified type name of this instance.

Operators

Equality(MajorMinorVersion, MajorMinorVersion)

Compares the provided operands for equality.

GreaterThan(MajorMinorVersion, MajorMinorVersion)

Compares the provided operands and returns true if the left operand is greater than the right operand, otherwise false.

GreaterThanOrEqual(MajorMinorVersion, MajorMinorVersion)

Compares the provided operands and returns true if the left operand is greater than or equal to the right operand, otherwise false.

Inequality(MajorMinorVersion, MajorMinorVersion)

Compares the provided operands for inequality.

LessThan(MajorMinorVersion, MajorMinorVersion)

Compares the provided operands and returns true if the left operand is less than the right operand, otherwise false.

LessThanOrEqual(MajorMinorVersion, MajorMinorVersion)

Compares the provided operands and returns true if the left operand is less than or equal to the right operand, otherwise false.

Applies to