/// <summary> /// /// </summary> /// <param name="paymentCalculationPeriod"></param> /// <param name="value"></param> public static void SetPaymentCalculationPeriodCalculationPeriodArray(PaymentCalculationPeriod paymentCalculationPeriod, CalculationPeriod[] value) { paymentCalculationPeriod.Items = value; }
/// <summary> /// /// </summary> /// <param name="paymentCalculationPeriod"></param> /// <returns></returns> public static decimal[] GetPaymentCalculationPeriodFixedPaymentAmountArray(PaymentCalculationPeriod paymentCalculationPeriod) { return(paymentCalculationPeriod.Items.Select(item => (decimal)item).ToArray()); }
/// <summary> /// /// </summary> /// <param name="paymentCalculationPeriod"></param> /// <returns></returns> public static CalculationPeriod[] GetPaymentCalculationPeriodCalculationPeriodArray(PaymentCalculationPeriod paymentCalculationPeriod) { return(paymentCalculationPeriod.Items.Cast <CalculationPeriod>().ToArray()); }