QLNet.IborIndex.clone C# (CSharp) Method

clone() public method

Returns a copy of itself linked to a different forwarding curve.
public clone ( Handle forwarding ) : IborIndex
forwarding Handle
return IborIndex
        public virtual IborIndex clone(Handle<YieldTermStructure> forwarding)
        {
            return new IborIndex(familyName(), tenor(), fixingDays(), currency(), fixingCalendar(), convention_, EndOfMonth, dayCounter(), forwarding);
        }

Usage Example

Esempio n. 1
0
        public virtual SwapIndex clone(Handle <YieldTermStructure> forwarding)
        {
            if (exogenousDiscount_)
            {
                return(new SwapIndex(familyName(),
                                     tenor(),
                                     fixingDays(),
                                     currency(),
                                     fixingCalendar(),
                                     fixedLegTenor(),
                                     fixedLegConvention(),
                                     dayCounter(),
                                     iborIndex_.clone(forwarding),
                                     discount_));
            }

            return(new SwapIndex(familyName(),
                                 tenor(),
                                 fixingDays(),
                                 currency(),
                                 fixingCalendar(),
                                 fixedLegTenor(),
                                 fixedLegConvention(),
                                 dayCounter(),
                                 iborIndex_.clone(forwarding)));
        }
All Usage Examples Of QLNet.IborIndex::clone