Class ClientVersion
Represents ClientVersion.
public class ClientVersion : IComparable<ClientVersion>, IComparer<ClientVersion>, IEquatable<ClientVersion>
- Inheritance
-
ClientVersion
- Implements
- Inherited Members
Constructors
ClientVersion(int, int, int, int, ClientType)
public ClientVersion(int maj, int min, int rev, int pat, ClientType type = ClientType.Classic)
Parameters
majintminintrevintpatinttypeClientType
ClientVersion(string)
public ClientVersion(string fmt)
Parameters
fmtstring
Fields
Version400a
public static readonly ClientVersion Version400a
Field Value
Version407a
public static readonly ClientVersion Version407a
Field Value
Version500a
public static readonly ClientVersion Version500a
Field Value
Version502b
public static readonly ClientVersion Version502b
Field Value
Version6000
public static readonly ClientVersion Version6000
Field Value
Version6000KR
public static readonly ClientVersion Version6000KR
Field Value
Version60142
public static readonly ClientVersion Version60142
Field Value
Version60142KR
public static readonly ClientVersion Version60142KR
Field Value
Version6017
public static readonly ClientVersion Version6017
Field Value
Version6050
public static readonly ClientVersion Version6050
Field Value
Version7000
public static readonly ClientVersion Version7000
Field Value
Version70120
public static readonly ClientVersion Version70120
Field Value
Version70130
public static readonly ClientVersion Version70130
Field Value
Version70160
public static readonly ClientVersion Version70160
Field Value
Version70300
public static readonly ClientVersion Version70300
Field Value
Version70331
public static readonly ClientVersion Version70331
Field Value
Version704565
public static readonly ClientVersion Version704565
Field Value
Version70500
public static readonly ClientVersion Version70500
Field Value
Version70610
public static readonly ClientVersion Version70610
Field Value
Version70654
public static readonly ClientVersion Version70654
Field Value
Version7090
public static readonly ClientVersion Version7090
Field Value
Properties
Major
public int Major { get; }
Property Value
Minor
public int Minor { get; }
Property Value
Patch
public int Patch { get; }
Property Value
ProtocolChanges
public ProtocolChanges ProtocolChanges { get; }
Property Value
Revision
public int Revision { get; }
Property Value
SourceString
public string SourceString { get; }
Property Value
Type
public ClientType Type { get; }
Property Value
Methods
Compare(ClientVersion, ClientVersion)
public static int Compare(ClientVersion a, ClientVersion b)
Parameters
Returns
CompareTo(ClientVersion)
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
public int CompareTo(ClientVersion o)
Parameters
Returns
- int
A value that indicates the relative order of the objects being compared. The return value has these meanings:
Value Meaning Less than zero This instance precedes otherin the sort order.Zero This instance occurs in the same position in the sort order as other.Greater than zero This instance follows otherin the sort order.
Equals(ClientVersion)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(ClientVersion other)
Parameters
otherClientVersionAn object to compare with this object.
Returns
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object obj)
Parameters
objobjectThe object to compare with the current object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
IsNull(object)
public static bool IsNull(object x)
Parameters
xobject
Returns
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
Operators
operator ==(ClientVersion, ClientVersion)
public static bool operator ==(ClientVersion l, ClientVersion r)
Parameters
Returns
operator >(ClientVersion, ClientVersion)
public static bool operator >(ClientVersion l, ClientVersion r)
Parameters
Returns
operator >=(ClientVersion, ClientVersion)
public static bool operator >=(ClientVersion l, ClientVersion r)
Parameters
Returns
operator !=(ClientVersion, ClientVersion)
public static bool operator !=(ClientVersion l, ClientVersion r)
Parameters
Returns
operator <(ClientVersion, ClientVersion)
public static bool operator <(ClientVersion l, ClientVersion r)
Parameters
Returns
operator <=(ClientVersion, ClientVersion)
public static bool operator <=(ClientVersion l, ClientVersion r)