出处 :https://www.cnblogs.com/edisonchou/category/821397.html

===============================================================

自测试使用的测试代码,供参考:

LogAN.Lib类库:

MyMath相关类

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LogAN.Lib
{
    public interface IMyMath
    {
        void Test1(string s);

        int Add(int x, int y);
    }

    public class MyMath : IMyMath
    {
        public void Test1(string s)
        {
            System.Diagnostics.Debug.WriteLine($"==============={s}");
            //throw new Exception();
        }

        public int Add(int a, int b)
        {
            return a + b;
        }

    }
}
View Code

相关文章:

  • 2021-10-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-30
  • 2021-09-16
猜你喜欢
  • 2022-02-10
  • 2021-05-28
  • 2022-01-12
  • 2022-01-10
  • 2021-09-08
  • 2022-01-07
  • 2021-07-13
相关资源
相似解决方案