摘要:
一、事件初印象 首先看个播放器的案例 1 class Program 2 { 3 static void Main(string[] args) 4 { 5 MP3 m = new MP3(); 6 7 //启动前 8 m.BeforeStartMP3 = () => { Console.Write 阅读全文
摘要:
一、扩展方法引入 有个Person类,里面的成员如下: 1 public class Person 2 { 3 public string Name { get; set; } 4 5 public void SayHi() 6 { 7 Console.WriteLine("hello, i am 阅读全文