Encapsulates a comparable version number. This version number generally conforms to the semantic version system. More...
Public Member Functions | |
VersionInfo (int major, int minor, int patch, int build) | |
Initializes a new instance of the InControl.VersionInfo with given version components. More... | |
int | CompareTo (VersionInfo other) |
Returns the sort order of the current instance compared to the specified object. More... | |
override bool | Equals (object other) |
Determines whether the specified System.Object is equal to the current InControl.VersionInfo. More... | |
override int | GetHashCode () |
Serves as a hash function for a InControl.VersionInfo object. More... | |
override string | ToString () |
Returns a System.String that represents the current InControl.VersionInfo. More... | |
string | ToShortString () |
Returns a shorter System.String that represents the current InControl.VersionInfo. More... | |
Static Public Member Functions | |
static VersionInfo | InControlVersion () |
Initialize an instance of InControl.VersionInfo with the current version of InControl. More... | |
static VersionInfo | UnityVersion () |
Initialize an instance of InControl.VersionInfo with the current version of Unity. More... | |
static bool | operator== (VersionInfo a, VersionInfo b) |
Compares two instances of InControl.VersionInfo for equality. More... | |
static bool | operator!= (VersionInfo a, VersionInfo b) |
Compares two instances of InControl.VersionInfo for inequality. More... | |
static bool | operator<= (VersionInfo a, VersionInfo b) |
Compares two instances of InControl.VersionInfo to see if the first is equal to or smaller than the second. More... | |
static bool | operator>= (VersionInfo a, VersionInfo b) |
Compares two instances of InControl.VersionInfo to see if the first is equal to or larger than the second. More... | |
static bool | operator< (VersionInfo a, VersionInfo b) |
Compares two instances of InControl.VersionInfo to see if the first is smaller than the second. More... | |
static bool | operator> (VersionInfo a, VersionInfo b) |
Compares two instances of InControl.VersionInfo to see if the first is larger than the second. More... | |
Public Attributes | |
int | major |
The major version component. This number changes when significant API changes are made. More... | |
int | minor |
The minor version component. This number changes when significant functionality is added in a mostly backwards-compatible manner. More... | |
int | patch |
The patch version component. This number is changed when small updates and fixes are added in a backwards-compatible manner. More... | |
int | build |
The build version component. This number is incremented during development. More... | |
Properties | |
static VersionInfo | Min ^(\d+)\.(\d+)\.(\d+)[a-zA-Z](\d+)" [get] |
Generates the minimum possible version number. More... | |
static VersionInfo | Max [get] |
Generates the maximum possible version number. More... | |
VersionInfo | Next [get] |
Generates the next build version. More... | |
int | Build [get] |
The build version component. This number is incremented during development. More... | |
Encapsulates a comparable version number. This version number generally conforms to the semantic version system.
VersionInfo | ( | int | major, |
int | minor, | ||
int | patch, | ||
int | build | ||
) |
Initializes a new instance of the InControl.VersionInfo with given version components.
major | The major version component. |
minor | The minor version component. |
patch | The patch version component. |
build | The build version component. |
int CompareTo | ( | VersionInfo | other | ) |
Returns the sort order of the current instance compared to the specified object.
override bool Equals | ( | object | other | ) |
Determines whether the specified System.Object is equal to the current InControl.VersionInfo.
other | The System.Object to compare with the current InControl.VersionInfo. |
true
if the specified System.Object is equal to the current InControl.VersionInfo; otherwise, false
.override int GetHashCode | ( | ) |
Serves as a hash function for a InControl.VersionInfo object.
|
static |
Initialize an instance of InControl.VersionInfo with the current version of InControl.
|
static |
Compares two instances of InControl.VersionInfo for inequality.
|
static |
Compares two instances of InControl.VersionInfo to see if the first is smaller than the second.
|
static |
Compares two instances of InControl.VersionInfo to see if the first is equal to or smaller than the second.
|
static |
Compares two instances of InControl.VersionInfo for equality.
|
static |
Compares two instances of InControl.VersionInfo to see if the first is larger than the second.
|
static |
Compares two instances of InControl.VersionInfo to see if the first is equal to or larger than the second.
string ToShortString | ( | ) |
Returns a shorter System.String that represents the current InControl.VersionInfo.
override string ToString | ( | ) |
Returns a System.String that represents the current InControl.VersionInfo.
|
static |
Initialize an instance of InControl.VersionInfo with the current version of Unity.
int build |
The build version component. This number is incremented during development.
int major |
The major version component. This number changes when significant API changes are made.
int minor |
The minor version component. This number changes when significant functionality is added in a mostly backwards-compatible manner.
int patch |
The patch version component. This number is changed when small updates and fixes are added in a backwards-compatible manner.
|
get |
The build version component. This number is incremented during development.
|
staticget |
Generates the maximum possible version number.
|
staticget |
Generates the minimum possible version number.
|
get |
Generates the next build version.