示例#1
0
 public static IEnumerable <Tag> CollectTags(this AspNetXmlDocument document)
 {
     return(CollectElements <Tag>(document));
 }
示例#2
0
 public static IEnumerable <T> CollectElements <T>(this AspNetXmlDocument document)
 {
     return(document.Elements.OfType <T>().Union(document.Elements.SelectMany(CollectElements <T>)));
 }