private void AddUpdates(IUpdateDownloadContentCollection content) { foreach (IUpdateDownloadContent2 udc in content) { if (udc.IsDeltaCompressedContent) { continue; } if (String.IsNullOrEmpty(udc.DownloadUrl)) { continue; // sanity check } Downloads.Add(udc.DownloadUrl); } }
public static List <IUpdateDownloadContent> ToList(this IUpdateDownloadContentCollection collection) { if (collection == null) { throw new ArgumentNullException(nameof(collection)); } List <IUpdateDownloadContent> list = new List <IUpdateDownloadContent>(); for (int i = 0; i < collection.Count; i++) { IUpdateDownloadContent content = collection[i]; list.Add(content); } return(list); }