Table of Contents

Class SemanticVersion

Namespace
MongoDB.Driver.Core.Misc
Assembly
MongoDB.Driver.Core.dll

Represents a semantic version number.

public class SemanticVersion : IEquatable<SemanticVersion>, IComparable<SemanticVersion>
Inheritance
SemanticVersion
Implements
Inherited Members

Constructors

SemanticVersion(int, int, int)

Initializes a new instance of the SemanticVersion class.

SemanticVersion(int, int, int, string)

Initializes a new instance of the SemanticVersion class.

Properties

Major

Gets the major version.

Minor

Gets the minor version.

Patch

Gets the patch version.

PreRelease

Gets the pre release version.

Methods

CompareTo(SemanticVersion)
Equals(SemanticVersion)
Equals(object)
GetHashCode()
Parse(string)

Parses a string representation of a semantic version.

ToString()
TryParse(string, out SemanticVersion)

Tries to parse a string representation of a semantic version.

Operators

operator ==(SemanticVersion, SemanticVersion)

Determines whether two specified semantic versions have the same value.

operator >(SemanticVersion, SemanticVersion)

Determines whether the first specified SemanticVersion is greater than the second specified SemanticVersion.

operator >=(SemanticVersion, SemanticVersion)

Determines whether the first specified SemanticVersion is greater than or equal to the second specified SemanticVersion.

operator !=(SemanticVersion, SemanticVersion)

Determines whether two specified semantic versions have different values.

operator <(SemanticVersion, SemanticVersion)

Determines whether the first specified SemanticVersion is less than the second specified SemanticVersion.

operator <=(SemanticVersion, SemanticVersion)

Determines whether the first specified SemanticVersion is less than or equal to the second specified SemanticVersion.