最近在网上看到这个设计模式, 感觉很赞 :)写代码的时候, 经常会遇到抛出NullReferenceException的情况, 举个最简单的例子:public class Student{ public void Method() { Console.WriteLine("Chen."); }}public class Test{ public static void Main(string[] args) { Student student = new Student(); student.Method(); //Chen. student=null; student.m Read More