摘要:
例程: class Program { static void Main(string[] args) { MyClass mc=new MyClass(); mc.write(); Console.Read(); } } //分部份方法 partial class MyClass {//方法声明类 partial void myFirstMothed(); public void write() { Console.WriteLine(i); myFirstMothed(); Console.WriteLine(i); } } partial class MyClass {//方法实现类 p 阅读全文