Click or drag to resize

SemanticVersion Class

Implements a semantic version as defined by the Semantic Versioning 2.0.0 specification. This is similar to the base Version class but includes support for pre-release identifiers as well as build information.
Inheritance Hierarchy

Namespace:  Neon.Common
Assembly:  Neon.Common (in Neon.Common.dll) Version: 2.14.0
public class SemanticVersion : IComparable

The SemanticVersion type exposes the following members.

Public methodSemanticVersion
Default constuctor.
Public propertyBuild
The build information or null.
Public propertyMajor
The major version number.
Public propertyMinor
The minor version number.
Public propertyPatch
The patch version number.
Public propertyPrerelease
The prerelease identifer or null.
Public methodStatic memberCompare
Compares two non-null semantic versions.
Public methodCompareTo
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.
Public methodStatic memberCreate
Creates a semantic version number from parameters.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Overrides ObjectEquals(Object).)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Overrides ObjectGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodStatic memberParse
Parses a semantic version string.
Public methodToString
Returns a string that represents the current object.
(Overrides ObjectToString.)
Public methodStatic memberTryParse
Attempts to parse a semantic version string.
Public operatorStatic memberEquality
Compares two SemanticVersion instances for equality.
Public operatorStatic member(String to SemanticVersion)
Explicitly casts a string into a SemanticVersion.
Public operatorStatic member(SemanticVersion to String)
Explicitly casts a SemanticVersion into a string.
Public operatorStatic memberGreaterThan
Compares two SemanticVersion instances to see if the first is greater.
Public operatorStatic memberGreaterThanOrEqual
Compares two SemanticVersion instances to see if the first is greater or equal.
Public operatorStatic memberInequality
Compares two SemanticVersion instances for inequality.
Public operatorStatic memberLessThan
Compares two SemanticVersion instances to see if the first is less.
Public operatorStatic memberLessThanOrEqual
Compares two SemanticVersion instances to see if the first is less or equal.
See Also