Boo.Lang.Compiler.Steps.ProcessMethodBodies.GetCorrespondingHasValueOperator C# (CSharp) Метод

GetCorrespondingHasValueOperator() приватный Метод

private GetCorrespondingHasValueOperator ( BinaryOperatorType op ) : BinaryOperatorType
op BinaryOperatorType
Результат BinaryOperatorType
        private BinaryOperatorType GetCorrespondingHasValueOperator(BinaryOperatorType op)
        {
            if (BinaryOperatorType.Equality == op || BinaryOperatorType.Inequality == op)
                return op;
            //when there is at least one non-value operand then any other comparison
            //than equality/inequality is undefined/false (as in C#)
            return BinaryOperatorType.BitwiseAnd;
        }
ProcessMethodBodies