コード例 #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));
 }
コード例 #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));
 }