private static uddi.apiv2.phone[] MapPhone(uddi.apiv3.phone[] phone)
        {
            if (phone == null)
            {
                return(null);
            }
            List <uddi.apiv2.phone> r = new List <uddi.apiv2.phone>();

            for (int i = 0; i < phone.Length; i++)
            {
                uddi.apiv2.phone x = new uddi.apiv2.phone();
                x.useType = phone[i].useType;
                x.Value   = phone[i].Value;
                r.Add(x);
            }
            return(r.ToArray());
        }
Exemplo n.º 2
0
 private static uddi.apiv2.phone[] MapPhone(uddi.apiv3.phone[] phone)
 {
     if (phone == null) return null;
     List<uddi.apiv2.phone> r = new List<uddi.apiv2.phone>();
     for (int i = 0; i < phone.Length; i++)
     {
         uddi.apiv2.phone x = new uddi.apiv2.phone();
         x.useType = phone[i].useType;
         x.Value = phone[i].Value;
         r.Add(x);
     }
     return r.ToArray();
 }