Skip to content

Instantly share code, notes, and snippets.

@IEvangelist
Last active February 12, 2016 20:40
Show Gist options
  • Save IEvangelist/f65ec3726727168b48c2 to your computer and use it in GitHub Desktop.
Save IEvangelist/f65ec3726727168b48c2 to your computer and use it in GitHub Desktop.
namespace IEvangelist.CSharper.Calculator
{
public class Int32Calculator : ICalculator<int>
{
public int Add(int leftOperand, int rightOperand) => leftOperand + rightOperand;
public int Divide(int leftOperand, int rightOperand) => leftOperand / rightOperand;
public int Multiply(int leftOperand, int rightOperand) => leftOperand * rightOperand;
public int Subtract(int leftOperand, int rightOperand) => leftOperand - rightOperand;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment