如何使C#库在主调用中不可见?

时间:2019-01-12 05:24:48

标签: c#

我想为我的客户制作一个c#库。但我不想让他们看到 库内容。我唯一需要的是让他们使用库。看不到我的图书馆 代码

在我的书架中:

 using System;
 using System.Collections.Generic;
 using System.Linq;
 using System.Text;
 using System.Windows.Forms;

 namespace Tcp1
 {
     public class Tcp1
    {
        public class Tcp
       {
           int a11;
           string b11;
           public Tcp(int a, string b)
           {
               a11 = a;
               b11 = b;
            }

           private  static string Add(int a, string b)
          {
              string ss = a.ToString() + b;
              MessageBox.Show(ss);
              return ss;
           }
    }
   }
}

我需要向客户隐藏库代码,并且需要为我的客户提供库支持,但是我不希望我的客户看到我详细的库代码的内容。我必须隐藏库代码,但客户仍可以同时使用它。

我不确定客户会打来什么,同样:

   int a;
   string b;
   string c;
   Tcp ss = new Tcp();
   c= Tcp.Add(a, b)

0 个答案:

没有答案