Struct OSVersion
Represents a version number consisting of major, minor, and point components.
Version numbers are often written as Major.Minor.Point.
Inherited Members
Namespace: UnityEngine.XR.ARKit
Assembly: solution.dll
Syntax
public struct OSVersion : IEquatable<OSVersion>, IComparable<OSVersion>
Constructors
| Name | Description |
|---|---|
| OSVersion(int, int, int) | Constructs a new version number. |
Properties
| Name | Description |
|---|---|
| major | The major version component. |
| minor | The minor version component. |
| point | The point version component. |
Methods
| Name | Description |
|---|---|
| CompareTo(OSVersion) | IComparable interface. This is useful for sorting routines. |
| Equals(object) | Compares for equality. |
| Equals(OSVersion) | Compares for equality. The three version components are compared against |
| GetHashCode() | Generates a hash code suitable for use in a |
| Parse(string) | Parses a string which contains a version number of the form X.Y.Z somewhere in the string.
If multiple such substrings exists, the first is used. The parser stops when either
3 components have been identified, or when fewer than 3 components have been identified
and the next character is not a period (".") or a digit (0-9). If |
| ToString() | Generates a string representation of the version. |
Operators
| Name | Description |
|---|---|
| operator ==(OSVersion, OSVersion) | Tests whether |
| operator >(OSVersion, OSVersion) | Tests whether |
| operator >=(OSVersion, OSVersion) | Tests whether |
| operator !=(OSVersion, OSVersion) | Tests whether |
| operator <(OSVersion, OSVersion) | Tests whether |
| operator <=(OSVersion, OSVersion) | Tests whether |