Class FixVersion
FIXVersion type safe enum
Inheritance
System.Object
FixVersion
Implements
System.IComparable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: FixAntenna.Common.dll
Syntax
public sealed class FixVersion : IComparable
Fields
Fix40
Declaration
public static readonly FixVersion Fix40
Field Value
Fix41
Declaration
public static readonly FixVersion Fix41
Field Value
Fix42
Declaration
public static readonly FixVersion Fix42
Field Value
Fix43
Declaration
public static readonly FixVersion Fix43
Field Value
Fix44
Declaration
public static readonly FixVersion Fix44
Field Value
Fix50
Declaration
public static readonly FixVersion Fix50
Field Value
Fix50Sp1
Declaration
public static readonly FixVersion Fix50Sp1
Field Value
Fix50Sp2
Declaration
public static readonly FixVersion Fix50Sp2
Field Value
Fixt11
Declaration
public static readonly FixVersion Fixt11
Field Value
Properties
FixtVersion
Gets the fix version number code.
Declaration
public int FixtVersion { get; }
Property Value
Type |
Description |
System.Int32 |
code of fix version
|
FixVersionEnum
Gets supported fix versions.
Declaration
public static IEnumerator<FixVersion> FixVersionEnum { get; }
Property Value
Type |
Description |
System.Collections.Generic.IEnumerator<FixVersion> |
supported fix version
|
IsFixt
Checks if this version is FIXT.
Declaration
public bool IsFixt { get; }
Property Value
Type |
Description |
System.Boolean |
true if is, otherwise false
|
Methods
CompareTo(FixVersion)
Compares this object with the specified object for order.
Declaration
public int CompareTo(FixVersion fixVersion)
Parameters
Type |
Name |
Description |
FixVersion |
fixVersion |
the fix version to compare
|
Returns
Type |
Description |
System.Int32 |
a negative integer, zero, or a positive integer as this object
is less than, equal to, or greater than the specified object.
|
CompareTo(Object)
Declaration
public int CompareTo(object o)
Parameters
Type |
Name |
Description |
System.Object |
o |
|
Returns
Type |
Description |
System.Int32 |
|
CreateInstanceByMessageVersion(String, Int32)
Returns the FIXVersion by messageVersion string (e.g.: FIX.4.0, FIX.4.1)
Declaration
public static FixVersion CreateInstanceByMessageVersion(string messageVersion, int fixtVersion)
Parameters
Type |
Name |
Description |
System.String |
messageVersion |
message version
|
System.Int32 |
fixtVersion |
|
Returns
GetInstanceByFixtVersion(Int32)
Gets fix version by number.
Declaration
public static FixVersion GetInstanceByFixtVersion(int fixNumber)
Parameters
Type |
Name |
Description |
System.Int32 |
fixNumber |
the ranges value for this
parameter should be from 2 to 9(FIX.4.0 ... FIX.5.0 sp2), the value for FIXT.1.1 should be -1.
|
Returns
Exceptions
Type |
Condition |
System.ArgumentException |
if fix session not exists
|
GetInstanceByMessageVersion(String)
Gets FIXVersion
instance be string
representation of fix session, FIX.4.0 - FIXT.1.1.
Declaration
public static FixVersion GetInstanceByMessageVersion(string messageVersion)
Parameters
Type |
Name |
Description |
System.String |
messageVersion |
the message version
|
Returns
GetMessageVersion()
Returns the message version representation e.g.: FIX.4.0, FIX.4.1
Declaration
public string GetMessageVersion()
Returns
Type |
Description |
System.String |
messageVersion
|
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.Object.ToString()
Implements
System.IComparable