GH_Version

References
public struct GH_Version
Basic version type. Contains Major, Minor and Revision fields.

Constructors

GH_Version

#
Copy constructor. Duplicate an existing version structure.
public GH_Version(
GH_Version
other
Version to duplicate.
)

GH_Version

#
Default constructor. Create a new version from specified fields.
public GH_Version(
v_major,
Major component of version.
v_minor,
Minor component of version.
v_revision
Revision component of version.
)

Fields

major

#
Major component of version structure.
public int major

minor

#
Minor component of version structure.
public int minor

revision

#
Revision component of version structure.
public int revision

Methods

Equals

#
Performs value equality comparison.
public override bool Equals(
obj
Object to compare with. If obj is a null reference or not a GH_Version instance, false is returned.
)
True if obj is a GH_Version instance which is equal to this one.
ValueType.Equals

GetHashCode

#
Returns the hash code for this instance.
public override int GetHashCode()
A hash code for the current version object.

ToString

#
Default formatter for Version data: M.m.RRRR Revision section is padded with zeroes until it is at least 4 digits long.
public override string ToString()
A string represtation of the Version structure.

Operators

OperationResultDescription
GH_Version==GH_VersionboolCompares two version structures for equality.
GH_Version>GH_VersionboolCompares versions for larger than relationships.
GH_Version>=GH_VersionboolCompares versions for larger than or equal to relationships.
GH_Version!=GH_VersionboolCompares two version structures for inequality.
GH_Version<GH_VersionboolCompares versions for smaller than relationships.
GH_Version<=GH_VersionboolCompares versions for smaller than or equal to relationships.