public IEnumerable<Uri> GetHrefs(string baseUri) { return GetEnumerator(RegExFindHref, baseUri, this.htmlData); }
private void FillListFromHtmlFile(List<ResourceLocation> urls) { using (Stream htmlStream = File.OpenRead(txtFileName.Text)) { using (HtmlParser parser = new HtmlParser(htmlStream)) { IEnumerator<Uri> enumUri = parser.GetHrefs(this.location1.ResourceLocation.URL).GetEnumerator(); while (enumUri.MoveNext()) { ResourceLocation newRl = location1.ResourceLocation; newRl.URL = enumUri.Current.OriginalString; urls.Add(newRl); } } } }