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

GetEquivalentBinaryOperator() статический приватный Метод

static private GetEquivalentBinaryOperator ( UnaryOperatorType op ) : BinaryOperatorType
op UnaryOperatorType
Результат BinaryOperatorType
        static BinaryOperatorType GetEquivalentBinaryOperator(UnaryOperatorType op)
        {
            switch (op)
            {
                case UnaryOperatorType.PostIncrement:
                case UnaryOperatorType.Increment:
                    return BinaryOperatorType.Addition;
                case UnaryOperatorType.PostDecrement:
                case UnaryOperatorType.Decrement:
                    return BinaryOperatorType.Subtraction;
            }
            throw new ArgumentException("op");
        }
ProcessMethodBodies