using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MSUtils { public class TestClass { /// /// 测试异常 /// /// public static void NullException() { throw new NullReferenceException("test exception in reference"); } } }