public override void initialize(FloatingRateCoupon coupon) { coupon_ = coupon as OvernightIndexedCoupon; if (coupon_ == null) { throw new ApplicationException("wrong coupon type"); } }
public override void initialize(FloatingRateCoupon coupon) { coupon_ = coupon as OvernightIndexedCoupon; if (coupon_ == null) throw new ApplicationException("wrong coupon type"); }
public override void initialize(FloatingRateCoupon coupon) { coupon_ = coupon as OvernightIndexedCoupon; Utils.QL_REQUIRE(coupon_ != null, () => "wrong coupon type"); }