12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- using EasyRpc.Interfaces;
- using Newtonsoft.Json.Linq;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text.Json;
- using System.Threading.Tasks;
- namespace EasyRpc.Services
- {
- public class Item
- {
- public int a { get; set; }
- public int b { get; set; }
- }
- public class IntMath// : IIntMath
- {
- /// <summary>
- /// Add to integers together
- /// hello tanya
- /// </summary>
- /// <param name="x">first integer</param>
- /// <param name="y">second integer</param>
- /// <returns></returns>
- public int Add(int x, int y)
- {
- return x + y;
- }
- /// <summary>
- /// Subtract to integers together
- /// </summary>
- /// <param name="x">first integer</param>
- /// <param name="y">second integer</param>
- /// <returns></returns>
- public int Subtract(Item item ,Dictionary<string,int > dict)
- {
- return 5;
- }
- /// <summary>
- /// Multiply to integers together
- /// </summary>
- /// <param name="x">first integer</param>
- /// <param name="y">second integer</param>
- /// <returns></returns>
- public int Multiply(int x, int y)
- {
- return x * y;
- }
- /// <summary>
- /// Divide to integers together
- /// </summary>
- /// <param name="x">first integer</param>
- /// <param name="y">second integer</param>
- /// <returns></returns>
- public int Divide(int x, int y)
- {
- return x / y;
- }
- }
- }
|