Пример #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);
        }
Пример #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);
        }
Пример #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);
 }