Пример #1
0
        public void setPricer(InflationCouponPricer pricer)
        {
            if (!checkPricerImpl(pricer))
            {
                throw new Exception("pricer given is wrong type");
            }

            if (pricer_ != null)
            {
                pricer_.unregisterWith(update);
            }
            pricer_ = pricer;
            if (pricer_ != null)
            {
                pricer_.registerWith(update);
            }
            update();
        }
Пример #2
0
        public void setPricer(InflationCouponPricer pricer)
        {
            Utils.QL_REQUIRE(checkPricerImpl(pricer), () => "pricer given is wrong type");

            if (pricer_ != null)
            {
                pricer_.unregisterWith(update);
            }

            pricer_ = pricer;

            if (pricer_ != null)
            {
                pricer_.registerWith(update);
            }

            update();
        }
      public void setPricer(InflationCouponPricer pricer) 
      {
         if (!checkPricerImpl(pricer))
            throw new ApplicationException("pricer given is wrong type");

         if (pricer_ != null)
            pricer_.unregisterWith(update);
        pricer_ = pricer;
        if (pricer_ != null)
           pricer_.registerWith(update);
        update();
      }