Skip to content

GH_Version

Public Struct

Basic version type. Contains Major, Minor and Revision fields.

Namespace: GH_IO.Types

Assembly: GH_IO (in GH_IO.dll)

Syntax

public struct GH_Version

The GH_Version type exposes the following members.

Constructors

Name

Description


Public Method

Copy constructor. Duplicate an existing version structure.


Public Method

Default constructor. Create a new version from specified fields.


Methods

Name

Description


Public Method

Performs value equality comparison.

(Overrides ValueType.Equals(Object).)


Public Method

Returns the hash code for this instance.

(Overrides ValueType.GetHashCode..)


Public Method

Default formatter for Version data: M.m.RRRR Revision section is padded with zeroes until it is at least 4 digits long.

(Overrides ValueType.ToString..)


Operators

Name

Description


Public Operator
Static Member
Equality

Compares two version structures for equality.


Public Operator
Static Member
GreaterThan

Compares versions for larger than relationships.


Public Operator
Static Member
GreaterThanOrEqual

Compares versions for larger than or equal to relationships.


Public Operator
Static Member
Inequality

Compares two version structures for inequality.


Public Operator
Static Member
LessThan

Compares versions for smaller than relationships.


Public Operator
Static Member
LessThanOrEqual

Compares versions for smaller than or equal to relationships.


Fields

Name

Description


Public Field
major

Major component of version structure.


Public Field
minor

Minor component of version structure.


Public Field
revision

Revision component of version structure.