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