コード例 #1
0
 /// <summary>
 /// Returns the GarbageCollectionThread instance. It ensures that only one instance
 /// of this class exist.
 /// </summary>
 /// <returns>GarbageCollectionThread instance</returns>
 public static GarbageCollectionTimer GetInstance()
 {
     if (_instance == null)
     {
         _instance = new GarbageCollectionTimer();
     }
     return(_instance);
 }
コード例 #2
0
 public void Dispose()
 {
     Stop();
     _instance = null;
     GC.SuppressFinalize(this);
 }
コード例 #3
0
 public void Dispose()
 {
     Stop();
     _instance = null;
     GC.SuppressFinalize(this);
 }
コード例 #4
0
 /// <summary>
 /// Returns the GarbageCollectionThread instance. It ensures that only one instance 
 /// of this class exist.
 /// </summary>
 /// <returns>GarbageCollectionThread instance</returns>
 public static GarbageCollectionTimer GetInstance()
 {
     if (_instance == null)
         _instance = new GarbageCollectionTimer();
     return _instance;
 }