Class HarpVersion
Represents the major and minor version of Harp firmware or hardware.
public sealed class HarpVersion : IComparable, IComparable<HarpVersion>, IEquatable<HarpVersion>
- Inheritance
-
HarpVersion
- Implements
- Inherited Members
Constructors
- HarpVersion(int?, int?)
Initializes a new instance of the HarpVersion class with the specified major and minor version.
Properties
- Major
Gets the optional major version.
- Minor
Gets the optional minor version.
Methods
- CompareTo(HarpVersion)
Performs a comparison with another version object and returns a value indicating whether this version is less than, equal, or greater than the other.
- Equals(HarpVersion)
Determines whether the specified version is equal to the current version.
- Equals(object)
Determines whether the specified object is equal to the current version.
- GetHashCode()
Computes the hash code for the current version object.
- Parse(string)
Converts a string representation of a HarpVersion to its equivalent value.
- Satisfies(HarpVersion)
Returns whether the specified version matches the current version, taking into account compatible floating ranges.
- ToString()
Converts the HarpVersion object to its equivalent string representation.
- TryParse(string, out HarpVersion)
Converts a string representation of a HarpVersion to its equivalent value. A return value indicates whether the conversion succeeded.
Operators
- operator ==(HarpVersion, HarpVersion)
Determines whether the values on both sides of the equality operator are equal.
- operator >(HarpVersion, HarpVersion)
Determines whether the value on the left-hand side of the operator is greater than the value on the right-hand side.
- operator >=(HarpVersion, HarpVersion)
Determines whether the value on the left-hand side of the operator is greater than or equal to the value on the right-hand side.
- operator !=(HarpVersion, HarpVersion)
Determines whether the values on both sides of the inequality operator are not equal.
- operator <(HarpVersion, HarpVersion)
Determines whether the value on the left-hand side of the operator is less than the value on the right-hand side.
- operator <=(HarpVersion, HarpVersion)
Determines whether the value on the left-hand side of the operator is less than or equal to the value on the right-hand side.