public void visit(DigitalIborCoupon c) { IborCouponPricer iborCouponPricer = pricer_ as IborCouponPricer; Utils.QL_REQUIRE(iborCouponPricer != null, () => "pricer not compatible with Ibor coupon"); c.setPricer(iborCouponPricer); }
public void visit(DigitalIborCoupon c) { IborCouponPricer pricer = pricer_ as IborCouponPricer; if (pricer == null) { throw new ApplicationException("pricer not compatible with Ibor coupon"); } c.setPricer(pricer); }
public void visit(DigitalIborCoupon c) { IborCouponPricer pricer = pricer_ as IborCouponPricer; if (pricer == null) throw new ApplicationException("pricer not compatible with Ibor coupon"); c.setPricer(pricer); }