Private Constructor and Singleton design pattern
摘要:
public class Singleton{static readonly Singleton instance = new Singleton();static Singleton() //Private Constructor to make sure it cannot be instantiated out of the class bounds.{}public static Sing... 阅读全文
posted @ 2007-11-07 10:47 Hill Jing 阅读(301) 评论(0) 推荐(0)