//Works!
    public override void Run(BaseDataClass <SettingsA> data)
    {
        var myDataA = data as DataA;

        if (myDataA != null)
        {
            //your parameter is a DataA;
        }
    }
Пример #2
0
 public override void DoWork(BaseDataClass instance)
 {
     Console.WriteLine("ConsumingDerivedClass.DoWork(DerivedDataClass); Type of argument is '{0}'", instance.GetType());
     base.DoWork(instance);
     // Some additional logic
 }
Пример #3
0
 public virtual void DoWork(BaseDataClass instance)
 {
     Console.WriteLine("ConsumingBaseClass.DoWork(DerivedDataClass); Type of argument is '{0}'", instance.GetType());
 }