Method | Description | |
---|---|---|
CachableCompile ( string selector ) : IEnumerable |
Compiles a selector. If the selector has been previously compiled then this method returns it rather than parsing and compiling the selector on each invocation. The cache is per-thread and therefore thread-safe without lock contention. |
|
Compile ( string selector ) : IEnumerable |
Parses and compiles CSS selector text into run-time function. Use this method to compile and reuse frequently used CSS selectors without parsing them each time. |
|
CreateCachingCompiler ( ) : Func |
Creates a caching selector compiler that uses a default cache strategy when the selector text is regarded as being orginally case-insensitive.
|
|
CreateCachingCompiler ( IDictionary |
Creates a caching selector compiler where the compiled selectors are maintained in a user-supplied IDictionary{TKey,TValue} instance. If cache is |
|
QuerySelector ( this node, string selector ) : HtmlNode |
Similar to QuerySelectorAll(HtmlNode,string) except it returns only the first element matching the supplied selector strings.
|
|
QuerySelectorAll ( this node, string selector ) : IEnumerable |
Retrieves all element nodes from descendants of the starting element node that match any selector within the supplied selector strings.
|
|
QuerySelectorAll ( this node, string selector, Func |
Retrieves all element nodes from descendants of the starting element node that match any selector within the supplied selector strings. An additional parameter specifies a particular compiler to use for parsing and compiling the selector. The compiler can be |
public static CachableCompile ( string selector ) : IEnumerable |
||
selector | string | |
return | IEnumerable |
public static Compile ( string selector ) : IEnumerable |
||
selector | string | |
return | IEnumerable |
public static CreateCachingCompiler ( ) : Func |
||
return | Func |
public static CreateCachingCompiler ( IDictionary |
||
cache | IDictionary |
|
return | Func |
public static QuerySelector ( this node, string selector ) : HtmlNode | ||
node | this | |
selector | string | |
return | HtmlNode |
public static QuerySelectorAll ( this node, string selector ) : IEnumerable |
||
node | this | |
selector | string | |
return | IEnumerable |
public static QuerySelectorAll ( this node, string selector, Func |
||
node | this | |
selector | string | |
compiler | Func |
|
return | IEnumerable |