Boo.Lang.Compiler.Steps.ProcessMethodBodies.GetEquivalentBinaryOperator C# (CSharp) Méthode

GetEquivalentBinaryOperator() static private méthode

static private GetEquivalentBinaryOperator ( UnaryOperatorType op ) : BinaryOperatorType
op UnaryOperatorType
Résultat 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