Пример #1
0
 public static ProcessingAllDataList <T> GetInstance()
 {
     if (instanceAllData == null)
     {
         GC.Collect(); //强制进行资源释放
         lock (_lock)
         {
             if (instanceAllData == null)
             {
                 instanceAllData = new ProcessingAllDataList <T>();
             }
         }
     }
     return(instanceAllData);
 }