예제 #1
0
        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));
            }
        }
예제 #2
0
    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));
      }
    }