Пример #1
0
 public override bool Matches(Element root, Element element)
 {
     return element.HasAttr(key) && pattern.Match(element.Attr(key)).Success; /*find*/
 }
Пример #2
0
 public override bool Matches(Element root, Element element)
 {
     return element.HasAttr(key) && element.Attr(key).ToLower().EndsWith(value, StringComparison.Ordinal); // value is lower case
 }
Пример #3
0
 public override bool Matches(Element root, Element element)
 {
     return element.HasAttr(key) && element.Attr(key).ToLower().Contains(value); // value is lower case
 }
Пример #4
0
 public override bool Matches(Element root, Element element)
 {
     return !string.Equals(value, element.Attr(key), StringComparison.OrdinalIgnoreCase);
 }