/// <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); }
public void Dispose() { Stop(); _instance = null; GC.SuppressFinalize(this); }
public void Dispose() { Stop(); _instance = null; GC.SuppressFinalize(this); }
/// <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; }