Class SemanticVersion
Represents a Semantic Version Number (major, minor, patch)
Implements
Inherited Members
Namespace: Hashgraph
Assembly: Hashgraph.dll
Syntax
public sealed class SemanticVersion : IEquatable<SemanticVersion>
Constructors
| Improve this Doc View SourceSemanticVersion(Int32, Int32, Int32)
Public Constructor, an
SemanticVersion is immutable after creation.
Declaration
public SemanticVersion(int major, int minor, int patch)
Parameters
| Type | Name | Description |
|---|---|---|
| Int32 | major | Major Version Number. |
| Int32 | minor | Minor Version Number. |
| Int32 | patch | Patch Version Number |
Properties
| Improve this Doc View SourceMajor
Major version number. Changes between major version numbers indicate incompatible API Changes.
Declaration
public int Major { get; }
Property Value
| Type | Description |
|---|---|
| Int32 |
Minor
Minor verion 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 |
|---|---|
| Int32 |
None
A special designation of an semantic version that can't be created. It represents the absence of a 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 |
|---|---|
| Int32 |