public override void Decorate(ITurbineEngineComponent component) { //DumpandBurn = (FuelDumper) component; //DumpandBurn.Disengage(); if (component is FuelDumper) { DumpandBurn = (FuelDumper)component; DumpandBurn.Disengage(); return; } throw new ArgumentException("DumpAndBurnDecorator.Decorate", nameof(component)); }