Click or drag to resize
SemanticVersion Methods

The SemanticVersion type exposes the following members.

Methods
  Name Description
Public method CompareTo(Object)
Compares two SemanticVersions. Implements IComparable.CompareTo.
Public method CompareTo(SemanticVersion)
Compares two SemanticVersions. Implements IComparable<SemanticVersion>.CompareTo.
Public method Equals(Object)
Overrides Object.Equal. Returns true if the passed in obj is a SemanticVersion and equal (value wise) to this SemanticVersion.
(Overrides ObjectEquals(Object).)
Public method Equals(SemanticVersion)
Implements IEquatable<SemanticVersion>.Equals. Returns true if the passed in SemanticVersion is equal value wise to this SemanticVersion.
Protected method Finalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public method GetHashCode
Overrides Object.GetHashCode.
(Overrides ObjectGetHashCode.)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public method Static member Parse
Parses a string with a semantic version and returns the SemanticVersion. Exception if the string does not contain a valid semantic version.
Public method Static member ParseOptionalVersion
Attempts to parse a string with a semantic version.
Public method ToString
Returns the string that was originally used to create this SemanticVersion. If no string was used, returns a string representing this SemanticVersion.
(Overrides ObjectToString.)
Public method Static member TryParse
Attempts to parse a string with a semantic version.
Public method Static member TryParseNuGet
Parses a string using loose semantic versioning rules that allows a Microsoft or NuGet style version with 2-4 version components followed by an optional pre release name.
Top
See Also