# GH_Version struct

Namespace: [GH_IO.Types](https://developer.rhino3d.com/api/gh1/namespace/gh-io.types.md) · Assembly: [GH_IO](https://developer.rhino3d.com/api/gh1/assembly/gh-io.md)

```cs
public struct GH_Version
```

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

## Constructors

- [GH_Version](https://developer.rhino3d.com/api/gh1/type/gh-io.types.gh-version/ctor.md): (2 overloads) Copy constructor. Duplicate an existing version structure.

## Fields

- [major](https://developer.rhino3d.com/api/gh1/type/gh-io.types.gh-version/major.md): Major component of version structure.
- [minor](https://developer.rhino3d.com/api/gh1/type/gh-io.types.gh-version/minor.md): Minor component of version structure.
- [revision](https://developer.rhino3d.com/api/gh1/type/gh-io.types.gh-version/revision.md): Revision component of version structure.

## Methods

- [Equals](https://developer.rhino3d.com/api/gh1/type/gh-io.types.gh-version/equals.md): Performs value equality comparison.
- [GetHashCode](https://developer.rhino3d.com/api/gh1/type/gh-io.types.gh-version/gethashcode.md): Returns the hash code for this instance.
- [ToString](https://developer.rhino3d.com/api/gh1/type/gh-io.types.gh-version/tostring.md): Default formatter for Version data: M.m.RRRR Revision section is padded with zeroes until it is at least 4 digits long.

## Operators

- [operator ==](https://developer.rhino3d.com/api/gh1/type/gh-io.types.gh-version/op-equality.md): (static) Compares two version structures for equality.
- [operator >](https://developer.rhino3d.com/api/gh1/type/gh-io.types.gh-version/op-greaterthan.md): (static) Compares versions for larger than relationships.
- [operator >=](https://developer.rhino3d.com/api/gh1/type/gh-io.types.gh-version/op-greaterthanorequal.md): (static) Compares versions for larger than or equal to relationships.
- [operator !=](https://developer.rhino3d.com/api/gh1/type/gh-io.types.gh-version/op-inequality.md): (static) Compares two version structures for inequality.
- [operator <](https://developer.rhino3d.com/api/gh1/type/gh-io.types.gh-version/op-lessthan.md): (static) Compares versions for smaller than relationships.
- [operator <=](https://developer.rhino3d.com/api/gh1/type/gh-io.types.gh-version/op-lessthanorequal.md): (static) Compares versions for smaller than or equal to relationships.
