private static uddi.apiv2.keyedReference MapKeyRef(uddi.apiv3.keyedReference keyedReference) { if (keyedReference == null) { return(null); } uddi.apiv2.keyedReference r = new uddi.apiv2.keyedReference(); r.keyName = keyedReference.keyName; r.keyValue = keyedReference.keyValue; r.tModelKey = keyedReference.tModelKey; return(r); }
private static uddi.apiv2.keyedReference[] MapCategoryBag(uddi.apiv3.categoryBag categoryBag) { if (categoryBag == null) { return(null); } List <uddi.apiv2.keyedReference> names = new List <uddi.apiv2.keyedReference>(); for (int i = 0; i < categoryBag.Items.Length; i++) { if (categoryBag.Items[i] is uddi.apiv3.keyedReference) { uddi.apiv3.keyedReference kr = categoryBag.Items[i] as uddi.apiv3.keyedReference; uddi.apiv2.keyedReference x = new uddi.apiv2.keyedReference(); x.keyName = kr.keyName; x.keyValue = kr.keyValue; x.tModelKey = kr.tModelKey; names.Add(x); } } return(names.ToArray()); }