Class SemanticVersion
Represents a Semantic Version Number (major, minor, patch)
Implements
Inherited Members
Namespace: Hiero
Assembly: Hiero.dll
Syntax
public sealed record SemanticVersion : IEquatable<SemanticVersion>
Constructors
| Edit this page View SourceSemanticVersion(int, int, int)
Public Constructor, an
SemanticVersion
is immutable after creation.
Declaration
public SemanticVersion(int major, int minor, int patch)
Parameters
| Type | Name | Description |
|---|---|---|
| int | major | Major Version Number. |
| int | minor | Minor Version Number. |
| int | patch | Patch Version Number |
Properties
| Edit this page View SourceMajor
Major version number. Changes between major version numbers indicate incompatible API Changes.
Declaration
public int Major { get; }
Property Value
| Type | Description |
|---|---|
| int |
Minor
Minor version number. Changes between minor version numbers indicate additions to the API and other backwards compatible changes.
Declaration
public int Minor { get; }
Property Value
| Type | Description |
|---|---|
| int |
None
A special designation of a semantic version that can't be created. It represents the absence of version information. It will resolve to the values of 0, 0, 0.
Declaration
public static SemanticVersion None { get; }
Property Value
| Type | Description |
|---|---|
| SemanticVersion |
Patch
Patch version number. Changes between patch versions indicate backwards compatible bug fixes.
Declaration
public int Patch { get; }
Property Value
| Type | Description |
|---|---|
| int |