コード例 #1
0
        private static ContactType GetContact(SRC.AddressType address)
        {
            //if (string.IsNullOrEmpty(address.Contact))
            //{
            //    return new ContactType();
            //}
            ContactType contact = new ContactType()
            {
                Email = new List <string>()
                {
                    address.Email
                },
                Name  = address.Contact,
                Phone = new List <string>()
                {
                    address.Phone
                },
                Salutation = address.Salutation
            };

            return(contact);
        }
コード例 #2
0
        private static AddressType GetAddress(SRC.AddressType address)
        {
            if (address == null)
            {
                return(null);
            }
            AddressType addrNew = new AddressType
            {
                Name = address.Name,
                //addrNew.Contact = address.Contact;
                Phone = address.Phone,
                POBox = address.POBox,
                Email = address.Email,
                //addrNew.Salutation = address.Salutation;
                Street            = address.Street,
                Country           = GetCountry(address.Country),
                ZIP               = address.ZIP,
                Town              = address.Town,
                AddressIdentifier = GetAddressIdentifier(address.AddressIdentifier)
            };

            return(addrNew);
        }