コード例 #1
0
        public cls_payment DeepCopy()
        {
            cls_payment payment_clone = (cls_payment)this.MemberwiseClone();

            payment_clone.set_creditcard(this.creditcard.Select(i => i.ShallowCopy()).ToList());
            payment_clone.set_debitcard(this.debitcard.Select(i => i.ShallowCopy()).ToList());
            payment_clone.set_giftchequenew(this.giftchequenew.Select(i => i.ShallowCopy()).ToList());
            payment_clone.set_custompayments(this.list_custompayment.Select(i => i.ShallowCopy()).ToList());
            return(payment_clone);
        }