public static contact[] MapContacts(uddi.apiv2.contact[] contact)
        {
            if (contact == null)
            {
                return(null);
            }
            List <contact> r = new List <contact>();

            for (int i = 0; i < contact.Length; i++)
            {
                contact x = new uddi.apiv3.contact();
                x.personName  = new personName[] { new personName(contact[i].personName, null) };
                x.useType     = contact[i].useType;
                x.description = MapDescription(contact[i].description);
                x.email       = MapEmail(contact[i].email);
                x.address     = MapAddress(contact[i].address);
                x.phone       = MapPhone(contact[i].phone);
                r.Add(x);
            }

            return(r.ToArray());
        }
Exemplo n.º 2
0
        public static contact[] MapContacts(uddi.apiv2.contact[] contact)
        {
            if (contact == null) return null;
            List<contact> r = new List<contact>();
            for (int i = 0; i < contact.Length; i++)
            {
                contact x = new uddi.apiv3.contact();
                x.personName = new personName[] { new personName(contact[i].personName, null) };
                x.useType = contact[i].useType;
                x.description = MapDescription(contact[i].description);
                x.email = MapEmail(contact[i].email);
                x.address = MapAddress(contact[i].address);
                x.phone = MapPhone(contact[i].phone);
                r.Add(x);
            }

            return r.ToArray();
        }