RuntimeVersion class
Namespace: Velopack
A Version class that also supports a single integer (major only)
public sealed class RuntimeVersion : IComparable, IComparable<RuntimeVersion>, IEquatable<RuntimeVersion>
Implements: IComparable, IComparable<RuntimeVersion>, IEquatable<RuntimeVersion>
Constructors
| Constructor | Summary |
|---|---|
RuntimeVersion |
RuntimeVersion(versionString)
public RuntimeVersion(string versionString)
Parameters
| Name | Type | Description |
|---|---|---|
versionString | string |
Properties
| Property | Summary |
|---|---|
Major |
Major
public int Major { get; }
Methods
| Method | Summary |
|---|---|
CompareTo | |
CompareTo | |
Equals | |
Equals | |
GetHashCode | |
ToString |
CompareTo(obj)
public int CompareTo(object obj)
Parameters
| Name | Type | Description |
|---|---|---|
obj | object |
Returns int
CompareTo(other)
public int CompareTo(RuntimeVersion other)
Parameters
| Name | Type | Description |
|---|---|---|
other | RuntimeVersion |
Returns int
Equals(other)
public bool Equals(RuntimeVersion other)
Parameters
| Name | Type | Description |
|---|---|---|
other | RuntimeVersion |
Returns bool
Equals(obj)
public override bool Equals(object obj)
Parameters
| Name | Type | Description |
|---|---|---|
obj | object |
Returns bool
GetHashCode()
public override int GetHashCode()
Returns int
ToString()
public override string ToString()
Returns string
Operators
| Operator | Summary |
|---|---|
operator == | |
operator != | |
operator < | |
operator <= | |
operator > | |
operator >= |
operator ==(v1, v2)
public static bool operator ==(RuntimeVersion v1, RuntimeVersion v2)
Parameters
| Name | Type | Description |
|---|---|---|
v1 | RuntimeVersion | |
v2 | RuntimeVersion |
Returns bool
operator !=(v1, v2)
public static bool operator !=(RuntimeVersion v1, RuntimeVersion v2)
Parameters
| Name | Type | Description |
|---|---|---|
v1 | RuntimeVersion | |
v2 | RuntimeVersion |
Returns bool
operator <(v1, v2)
public static bool operator <(RuntimeVersion v1, RuntimeVersion v2)
Parameters
| Name | Type | Description |
|---|---|---|
v1 | RuntimeVersion | |
v2 | RuntimeVersion |
Returns bool
operator <=(v1, v2)
public static bool operator <=(RuntimeVersion v1, RuntimeVersion v2)
Parameters
| Name | Type | Description |
|---|---|---|
v1 | RuntimeVersion | |
v2 | RuntimeVersion |
Returns bool
operator >(v1, v2)
public static bool operator >(RuntimeVersion v1, RuntimeVersion v2)
Parameters
| Name | Type | Description |
|---|---|---|
v1 | RuntimeVersion | |
v2 | RuntimeVersion |
Returns bool
operator >=(v1, v2)
public static bool operator >=(RuntimeVersion v1, RuntimeVersion v2)
Parameters
| Name | Type | Description |
|---|---|---|
v1 | RuntimeVersion | |
v2 | RuntimeVersion |
Returns bool
Generated from Velopack 1.1.1