C入门经典教程概要.ppt

C入门经典教程概要

什么是抽象工厂设计模式 1、提供一系列相互依赖对象的创建工作 2、封装对象常规的创建方法(new) 3、提供统一调用数据访问方法的方式 4、避免调用数据访问方法和具体对象创建工作的紧耦合 using System; public class TestExcep { public static int Calc(int j) { return 100/j; } } public class UnForgiven { public static void MyUnhandleMethod(object sender, UnhandledExceptionEventArgs e) { #if DEBUG Console.WriteLine(Debug: + e.ToString()); #else Console.WriteLine(Release: + e.ToString()); #endif } } class MyApp { public static void Main() { Thread.GetDomain().UnhandledException += new UnhandledExceptionEventHandler(UnForgiven.MyU

文档评论(0)

1亿VIP精品文档

相关文档