private static IHtmlCollection CreateCollection(MatchCollection matches) { var elements = new List<IHtmlElement>(); foreach (Match match in matches) elements.Add(CreateElement(match)); return new HtmlCollection(elements); }