public ArithmeticUnaryExpression(ArithmeticOperator operation, IExpression expression)
: base(expression)
{
this.operation = operation;
switch (operation)
{
case ArithmeticOperator.Minus:
this.function = Operators.NegateObject;
break;
case ArithmeticOperator.Plus:
this.function = Operators.PlusObject;
break;
default:
throw new ArgumentException("Invalid operator");
}
}