コード例 #1
0
 protected IComparisonResult And(IComparisonResult?left, IComparisonResult?right) => left?.And(right) ?? ComparisonResult.FailureEmptyOperand("Missing left operand for And");
コード例 #2
0
 protected IComparisonResult Or(IComparisonResult?left, IComparisonResult?right) => left?.Or(right) ?? right ?? ComparisonResult.FailureEmptyOperand("Missing operands for Or");
コード例 #3
0
 protected IComparisonResult IfThen(IComparisonResult ifResult, IComparisonResult thenResult) => ifResult.Result ? thenResult : ComparisonResult.Success();