public static IEnumerable <Tag> CollectTags(this AspNetXmlDocument document) { return(CollectElements <Tag>(document)); }
public static IEnumerable <T> CollectElements <T>(this AspNetXmlDocument document) { return(document.Elements.OfType <T>().Union(document.Elements.SelectMany(CollectElements <T>))); }