using System; using System.Runtime.Serialization; namespace SmartCoalApplication { [Serializable] public class SaveConfigToken : ICloneable, IDeserializationCallback { #region ICloneable Members /// /// This should simply call "new myType(this)" ... do not call base class' /// implementation of Clone, as this is handled by the constructors. /// 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(); } } }