public static uddi.apiv3.serviceInfo[] MapServiceInfos(uddi.apiv2.serviceInfo[] serviceInfo) { if (serviceInfo == null) { return(null); } List <uddi.apiv3.serviceInfo> r = new List <uddi.apiv3.serviceInfo>(); for (int i = 0; i < serviceInfo.Length; i++) { uddi.apiv3.serviceInfo x = new uddi.apiv3.serviceInfo(); x.businessKey = serviceInfo[i].businessKey; x.serviceKey = serviceInfo[i].serviceKey; x.name = MapNames(serviceInfo[i].name); r.Add(x); } return(r.ToArray()); }
public static uddi.apiv3.serviceInfo[] MapServiceInfos(uddi.apiv2.serviceInfo[] serviceInfo) { if (serviceInfo == null) return null; List<uddi.apiv3.serviceInfo> r = new List<uddi.apiv3.serviceInfo>(); for (int i = 0; i < serviceInfo.Length; i++) { uddi.apiv3.serviceInfo x = new uddi.apiv3.serviceInfo(); x.businessKey = serviceInfo[i].businessKey; x.serviceKey = serviceInfo[i].serviceKey; x.name = MapNames(serviceInfo[i].name); r.Add(x); } return r.ToArray(); }