IIntMath.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. using EasyRpc.Services;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Threading.Tasks;
  6. namespace EasyRpc.Interfaces
  7. {
  8. public interface IIntMath
  9. {
  10. /// <summary>
  11. /// Add to integers together
  12. /// hello tanya
  13. /// </summary>
  14. /// <param name="x">first integer</param>
  15. /// <param name="y">second integer</param>
  16. /// <returns></returns>
  17. int Add(int x, int y);
  18. /// <summary>
  19. /// Subtract to integers together
  20. /// </summary>
  21. /// <param name="x">first integer</param>
  22. /// <param name="y">second integer</param>
  23. /// <returns></returns>
  24. int Subtract(Item item);
  25. /// <summary>
  26. /// Multiply to integers together
  27. /// </summary>
  28. /// <param name="x">first integer</param>
  29. /// <param name="y">second integer</param>
  30. /// <returns></returns>
  31. int Multiply(int x, int y);
  32. /// <summary>
  33. /// Divide to integers together
  34. /// </summary>
  35. /// <param name="x">first integer</param>
  36. /// <param name="y">second integer</param>
  37. /// <returns></returns>
  38. int Divide(int x, int y);
  39. }
  40. }