Exemple #1
0
        public void visit(CmsCoupon c)
        {
            CmsCouponPricer cmsCouponPricer = pricer_ as CmsCouponPricer;

            Utils.QL_REQUIRE(cmsCouponPricer != null, () => "pricer not compatible with CMS coupon");
            c.setPricer(cmsCouponPricer);
        }
Exemple #2
0
        public void visit(CmsCoupon c)
        {
            CmsCouponPricer pricer = pricer_ as CmsCouponPricer;

            if (pricer == null)
            {
                throw new ApplicationException("pricer not compatible with CMS coupon");
            }
            c.setPricer(pricer);
        }
Exemple #3
0
 public void visit(CmsCoupon c)
 {
     CmsCouponPricer pricer = pricer_ as CmsCouponPricer;
     if (pricer == null)
         throw new ApplicationException("pricer not compatible with CMS coupon");
     c.setPricer(pricer);
 }