HistoryMementoData.cs 544 B

123456789101112131415161718192021222324252627
  1. using System;
  2. namespace PaintDotNet.Measurement
  3. {
  4. /// <summary>
  5. /// Stores data that should be serializable/deserializable
  6. /// for a HistoryMemento.
  7. /// </summary>
  8. [Serializable]
  9. public abstract class HistoryMementoData : IDisposable
  10. {
  11. ~HistoryMementoData()
  12. {
  13. Dispose(false);
  14. }
  15. public void Dispose()
  16. {
  17. Dispose(true);
  18. GC.SuppressFinalize(this);
  19. }
  20. protected virtual void Dispose(bool disposing)
  21. {
  22. }
  23. }
  24. }