public abstract class BaseDataSet : DataSet { // Constructor and other stuff here public virtual bool Validate() { return true; } }then i have this derived class:
public class SomeDataset : BaseDataSet, IDataSet { // Constructor and other stuff here public override bool Validate() { bool ret = this.DoSomeProcessing(); return ret; } }And finally, in some other object, i have this code:
public bool save( IDataSet ds ) { if (ds.Validate()} { //save it }The problem: