public static int ToFIX(PosReqResult value) { switch (value) { case PosReqResult.ValidRequest: return(0); case PosReqResult.InvalidOrUnsupportedRequest: return(1); case PosReqResult.NoPositionsFound: return(2); case PosReqResult.NotAuthorized: return(3); case PosReqResult.RequestForPositionNotSupported: return(4); case PosReqResult.Other: return(99); default: throw new ArgumentException(string.Format("", (object)value)); } }
public static int ToFIX(PosReqResult value) { switch (value) { case PosReqResult.ValidRequest: return 0; case PosReqResult.InvalidOrUnsupportedRequest: return 1; case PosReqResult.NoPositionsFound: return 2; case PosReqResult.NotAuthorized: return 3; case PosReqResult.RequestForPositionNotSupported: return 4; case PosReqResult.Other: return 99; default: throw new ArgumentException(string.Format("", (object) value)); } }