private void PopulateInformation() { if (informationList == null) { informationList = PaymentInformationList.ForPayment(this); // caution: assumes the list is static over lifetime of the payment object } }
public static PaymentInformationList FromArray(BasicPaymentInformation[] basicArray) { PaymentInformationList result = new PaymentInformationList { Capacity = basicArray.Length * 11 / 10 }; foreach (BasicPaymentInformation basic in basicArray) { result.Add(PaymentInformation.FromBasic(basic)); } return(result); }