1234567891011121314151617181920212223242526272829303132333435363738394041 |
- using System;
- using System.Runtime.Serialization;
- namespace SmartCoalApplication
- {
- [Serializable]
- public class SaveConfigToken
- : ICloneable,
- IDeserializationCallback
- {
- #region ICloneable Members
- /// <summary>
- /// This should simply call "new myType(this)" ... do not call base class'
- /// implementation of Clone, as this is handled by the constructors.
- /// </summary>
- public virtual object Clone()
- {
- return new SaveConfigToken(this);
- }
- #endregion
- public SaveConfigToken()
- {
- }
- protected SaveConfigToken(SaveConfigToken copyMe)
- {
- }
- public virtual void Validate()
- {
- }
- public void OnDeserialization(object sender)
- {
- Validate();
- }
- }
- }
|