public void visit(CappedFlooredCmsCoupon c) { CmsCouponPricer cmsCouponPricer = pricer_ as CmsCouponPricer; Utils.QL_REQUIRE(cmsCouponPricer != null, () => "pricer not compatible with CMS coupon"); c.setPricer(cmsCouponPricer); }
public void visit(CappedFlooredCmsCoupon c) { CmsCouponPricer pricer = pricer_ as CmsCouponPricer; if (pricer == null) { throw new ApplicationException("pricer not compatible with CMS coupon"); } c.setPricer(pricer); }
public void visit(CappedFlooredCmsCoupon c) { CmsCouponPricer pricer = pricer_ as CmsCouponPricer; if (pricer == null) throw new ApplicationException("pricer not compatible with CMS coupon"); c.setPricer(pricer); }