dll的封装方法
dll的建立:
step1:文件 -> 新建 -> 项目
step2:新建项目 -> 类库
step3:建立如下的cs文件:
using System;
using System.Collections.Generic;
using System.Text;
namespace MyDll
{
public class Js
{
public Js()
{
//默认构造函数
}
public static string ShowMsg(string Msg)
{
return Msg;
}
}
}
step4:按ctrl+shift+B进行编译 即可得到dll文件

浙公网安备 33010602011771号