|  | Semantic | 
 Inheritance Hierarchy
Inheritance Hierarchy Syntax
SyntaxThe SemanticVersion type exposes the following members.
 Constructors
Constructors| Name | Description | |
|---|---|---|
|  | SemanticVersion | Initializes a new default instance of the SemanticVersion class. | 
|  | SemanticVersion(Version, String) | Initializes a new instance of the SemanticVersion class. | 
 Properties
Properties Methods
Methods| Name | Description | |
|---|---|---|
|  | CompareTo | 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(Object) | Determines whether the specified object is equal to the current object. (Overrides ObjectEquals(Object)) | 
|  | Equals(SemanticVersion) | Indicates whether the current object is equal to another object of the same type. | 
|  | GetHashCode | Serves as the default hash function. (Overrides ObjectGetHashCode) | 
|   | Parse | Parses the specified semantic version. Any prefix or suffix strings are ignored, e.g. "Version 1.2.3-beta1 with extras" is parsed as "1.2.3-beta1" | 
|  | ToString | Returns a string that represents the current object. (Overrides ObjectToString) | 
 Operators
Operators| Name | Description | |
|---|---|---|
|   | Equality(SemanticVersion, SemanticVersion) | Implements the operator ==. | 
|   | GreaterThan(SemanticVersion, SemanticVersion) | Implements the operator >. | 
|   | GreaterThanOrEqual(SemanticVersion, SemanticVersion) | Implements the operator >=. | 
|   | Inequality(SemanticVersion, SemanticVersion) | Implements the operator !=. | 
|   | LessThan(SemanticVersion, SemanticVersion) | Implements the operator <. | 
|   | LessThanOrEqual(SemanticVersion, SemanticVersion) | Implements the operator <=. | 
 Extension Methods
Extension Methods| Name | Description | |
|---|---|---|
|  | SafeCastT | Performs a cast from object to T, avoiding possible null violations if T is a value type. (Defined by ObjectExtensions) | 
 See Also
See Also