Source/Operations/BinaryOperations.cs
/// <summary>
/// Adds the right operand to the left operand
/// </summary>
/// <param name="leftOperand">The left operand</param>
/// <param name="rightOperand">The right operand</param>
/// <returns>The result of the operation</returns>
Adds the right operand to the left operand
Adds the right operand to the left operand
public static ExpressionResult Add(ExpressionResult leftOperand, ExpressionResult rightOperand)
		{
			return new ArithmeticExpressionResult(leftOperand, rightOperand)
			{
				Value = leftOperand.Value + rightOperand.Value,
				TermType = $"{leftOperand.TermType} + {rightOperand.TermType}"
			};
		}
public static ExpressionResult Add ( ExpressionResult leftOperand , ExpressionResult rightOperand ) { return new ArithmeticExpressionResult ( leftOperand , rightOperand ) { Value = leftOperand . Value + rightOperand . Value , TermType = $" { leftOperand . TermType }  +  { rightOperand . TermType } " } ; }
Adds the right operand to the left operand
Adds the right operand to the left operand
The result of the operation
The result of the operation
leftOperand
ExpressionResult
The left operand
The left operand
rightOperand
ExpressionResult
The right operand
The right operand