Esempio 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));
 }
Esempio 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));
 }