posts - 934,  comments - 588,  views - 403万
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
  2008年12月28日
摘要: 经常要用到Singleton模式,通常情况下我们是为那个类写一个static method来创建对象。.net3.5下,可以封装这么一个辅助类, 看代码如下: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1 #region S... 阅读全文
posted @ 2008-12-28 16:19 PetterLiu 阅读(958) 评论(3) 推荐(0) 编辑
点击右上角即可分享
微信分享提示