Пример #1
0
        public PersonalizedInfo Clone()
        {
            var pi = new PersonalizedInfo();

            pi.ParsonId   = this.ParsonId.Clone();
            pi.ParsonName = this.ParsonName.Clone();

            foreach (var item in this.OtherNameList)
            {
                pi.OtherNameList.Add(item.Clone());
            }

            pi.Facility   = this.Facility.Clone();
            pi.Department = this.Department.Clone();

            foreach (var item in this.AddressList)
            {
                pi.AddressList.Add(item.Clone());
            }

            foreach (var item in this.PhoneList)
            {
                pi.PhoneList.Add(item.Clone());
            }

            foreach (var item in this.MailAddressList)
            {
                pi.MailAddressList.Add(item.Clone());
            }

            return(pi);
        }
Пример #2
0
        public PersonalizedInfo Clone()
        {
            var pi = new PersonalizedInfo();

            pi.ParsonId = this.ParsonId.Clone();
            pi.ParsonName = this.ParsonName.Clone();

            foreach (var item in this.OtherNameList) {
                pi.OtherNameList.Add(item.Clone());
            }

            pi.Facility = this.Facility.Clone();
            pi.Department = this.Department.Clone();

            foreach (var item in this.AddressList) {
                pi.AddressList.Add(item.Clone());
            }

            foreach (var item in this.PhoneList) {
                pi.PhoneList.Add(item.Clone());
            }

            foreach (var item in this.MailAddressList) {
                pi.MailAddressList.Add(item.Clone());
            }

            return pi;
        }