Ejemplo n.º 1
0
 public override void Decorate(ITurbineEngineComponent reheat)
 {
     if (reheat is ReheatChamber)
     {
         Reheat = reheat as ReheatChamber;
         Reheat.Disengage();
         return;
     }
     throw new ArgumentException("ReheatDecorator.Decorate", nameof(reheat));
 }
Ejemplo n.º 2
0
 public override void Decorate(ITurbineEngineComponent reheat)
 {
     if (reheat is ReheatChamber)
     {
         Reheat = reheat as ReheatChamber;
         Reheat.Disengage();
         return;
     }
     throw new ArgumentException("ReheatDecorator.Decorate", nameof(reheat));
 }