GH_Version

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

Constructors

GH_Version

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

GH_Version

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

Fields

major

#
public int major
Major component of version structure.

minor

#
public int minor
Minor component of version structure.

revision

#
public int revision
Revision component of version structure.

Methods

Equals

#
public override bool Equals(object obj)
Performs value equality comparison.
obj (object)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

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

ToString

#
public override string ToString()
Default formatter for Version data: M.m.RRRR Revision section is padded with zeroes until it is at least 4 digits long.
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.