public static AmortizingFixedRateBond makeAmortizingFixedBond(Date startDate,
                                                                      Period bondLength,
                                                                      DayCounter dCounter,
                                                                      Frequency payFrequency,
                                                                      double amount,
                                                                      double rate,
                                                                      Calendar calendar)
        {
            AmortizingFixedRateBond bond;
            Date endDate = calendar.advance(startDate, bondLength);

            Schedule schedule = new Schedule(startDate, endDate, bondLength, calendar, BusinessDayConvention.Unadjusted,
                                             BusinessDayConvention.Unadjusted, DateGeneration.Rule.Backward, false);

            bond = new AmortizingFixedRateBond(0, calendar, amount, startDate, bondLength, payFrequency, rate, dCounter);

            return(bond);
        }
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(AmortizingFixedRateBond obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }