コード例 #1
0
        public static BE.BankAccount Clone(this BE.BankAccount original)
        {
            BE.BankAccount target = new BankAccount();


            target.BankName          = original.BankName;
            target.BranchNumber      = original.BranchNumber;
            target.BranchAddress     = original.BranchAddress;
            target.BranchCity        = original.BranchCity;
            target.BankAccountNumber = original.BankAccountNumber;
            return(target);
        }
コード例 #2
0
ファイル: DAL_IMP_XML.cs プロジェクト: hchirit/Csharp.net
        private XElement ConvertBank(BE.BankAccount bank)
        {
            XElement newbank = new XElement("bank",
                                            new XElement("BankNum", bank.BankNumber),
                                            new XElement("BankName", bank.BankName),
                                            new XElement("City", bank.BranhCity),
                                            new XElement("Branch_Bank", bank.BranchNumber),
                                            new XElement("AdressBank", bank.BranchAdress),
                                            new XElement("AccountNum", bank.BankAccounts));

            return(newbank);
        }
コード例 #3
0
 public static BE.BankAccount Clone(this BE.BankAccount original)
 {
     BE.BankAccount target = new BankAccount(original.BankName, original.BranchNumber, original.BranchAddress, original.BranchCity, original.Banknumber);
     return(target);
 }