cs注册com

namespace Cool {
	public class Test {

		static void Main() {
			System.Console.WriteLine("hello!");
		}

		public int test() { return 4; }
		public int test2(int a) { return 10 + a; }
		public string hi(string s) { return "hello, " + s; }
	}
}

命令:

csc /target:library /out:a.dll a.cs
regasm a.dll
posted @ 2020-08-10 10:09  zjh6  阅读(11)  评论(0)    收藏  举报  来源