예제 #1
0
        public static bool RemoveDubiousReason(Result result, DubiousResultEnum reason)
        {
            if (!result.DubiousResult.HasFlag(reason)) return false;

            result.DubiousResult &= ~reason;
            return true;
        }
예제 #2
0
        public static bool AddDubiousReason( Result result, DubiousResultEnum reason )
        {
            if ( result.DubiousResult.HasFlag( reason )) return false;

            result.DubiousResult = result.DubiousResult | reason;
            return true;
        }
예제 #3
0
        public static bool RemoveDubiousReason(Result result, DubiousResultEnum reason)
        {
            if (!result.DubiousResult.HasFlag(reason))
            {
                return(false);
            }

            result.DubiousResult &= ~reason;
            return(true);
        }
예제 #4
0
        public static bool AddDubiousReason(Result result, DubiousResultEnum reason)
        {
            if (result.DubiousResult.HasFlag(reason))
            {
                return(false);
            }

            result.DubiousResult = result.DubiousResult | reason;
            return(true);
        }