public static bool RemoveDubiousReason(Result result, DubiousResultEnum reason) { if (!result.DubiousResult.HasFlag(reason)) return false; result.DubiousResult &= ~reason; return true; }
public static bool AddDubiousReason( Result result, DubiousResultEnum reason ) { if ( result.DubiousResult.HasFlag( reason )) return false; result.DubiousResult = result.DubiousResult | reason; return true; }
public static bool RemoveDubiousReason(Result result, DubiousResultEnum reason) { if (!result.DubiousResult.HasFlag(reason)) { return(false); } result.DubiousResult &= ~reason; return(true); }
public static bool AddDubiousReason(Result result, DubiousResultEnum reason) { if (result.DubiousResult.HasFlag(reason)) { return(false); } result.DubiousResult = result.DubiousResult | reason; return(true); }