static int Test () { Program p = new Program (); MyReturnCode rc = new MyReturnCode (p.InstanceTest); return rc (1); }
static int Test () { MyReturnCode rc = new MyReturnCode (StaticTest); return rc (1); }
/// <summary> /// Base response type for strong type check on enums /// </summary> /// <param name="msgType">The return message type</param> /// <param name="msg"> /// The paired msg for this response which transmits the UID for correlation /// </param> /// <param name="code">The return code</param> /// <param name="status">The return string</param> public MyBaseResponse(MyMsgType msgType, ISpEventMessage msg, MyReturnCode code, string status) : base(new SpEnumToInt(msgType), msg, new SpEnumToInt(code), status) { }