随笔分类 -  设计模式

摘要:http://www.cnblogs.com/PatrickLiu/category/1018980.html 阅读全文
posted @ 2018-03-08 13:11 编程猴子 阅读(110) 评论(0) 推荐(0)
摘要:class Person { public string Name { get; set; } //1. 私有化构造函数 //2. 提供1个私有的静态的Person类型的变量 //3. 提供1个公共的静态的方法 用于返回上面的变量. private static Person p; pu... 阅读全文
posted @ 2014-05-26 22:26 编程猴子 阅读(213) 评论(0) 推荐(0)