示例#1
0
        static OperationResult()
        {
            var result = new OperationResult();

            OperationErrors.Init(result, OperationErrorCodes.Success);
            SuccessResult = result;
        }
示例#2
0
        public static OperationResult Create(OperationErrorCodes code)
        {
            var opResult = new OperationResult();

            OperationErrors.Init(opResult, code);
            return(opResult);
        }