示例#1
0
        public static ArticleManager GetInstance()
        {
            lock (typeof(ArticleManager))
            {
                if( instance == null )
                    instance = new ArticleManager();
            }

            return instance;
        }
示例#2
0
        public static ArticleManager GetInstance()
        {
            lock (typeof(ArticleManager))
            {
                if (instance == null)
                {
                    instance = new ArticleManager();
                }
            }

            return(instance);
        }
示例#3
0
 public void Dispose()
 {
     instance = null;
 }
示例#4
0
 public void Dispose()
 {
     instance = null;
 }