SaveConfigToken.cs 863 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using System;
  2. using System.Runtime.Serialization;
  3. namespace SmartCoalApplication
  4. {
  5. [Serializable]
  6. public class SaveConfigToken
  7. : ICloneable,
  8. IDeserializationCallback
  9. {
  10. #region ICloneable Members
  11. /// <summary>
  12. /// This should simply call "new myType(this)" ... do not call base class'
  13. /// implementation of Clone, as this is handled by the constructors.
  14. /// </summary>
  15. public virtual object Clone()
  16. {
  17. return new SaveConfigToken(this);
  18. }
  19. #endregion
  20. public SaveConfigToken()
  21. {
  22. }
  23. protected SaveConfigToken(SaveConfigToken copyMe)
  24. {
  25. }
  26. public virtual void Validate()
  27. {
  28. }
  29. public void OnDeserialization(object sender)
  30. {
  31. Validate();
  32. }
  33. }
  34. }