Class FloatingRateCouponExtensions
FloatingRateCoupon's modifier, which returns a modified copy of the receiver, keeping its static type,
where QuantLib's setPricer changes the coupon.
public static class FloatingRateCouponExtensions
- Inheritance
-
FloatingRateCouponExtensions
- Inherited Members
Methods
SetPricer<T>(T, FloatingRateCouponPricer?)
A copy of the coupon holding another pricer. A capped or floored Ibor coupon's copy carries the pricer into a
copy of its underlying, as QuantLib's CappedFlooredCoupon::setPricer sets both; a capped overnight
coupon's sets its own pricer only, as QuantLib's does.
public static T SetPricer<T>(this T coupon, FloatingRateCouponPricer? pricer) where T : FloatingRateCoupon
Parameters
couponTThe coupon.
pricerFloatingRateCouponPricerThe pricer, or null for none.
Returns
- T
The modified copy; the receiver is unchanged.
Type Parameters
TThe coupon's type.