Match<>(input, generex, startAt) MatchExact<>(input, generex, mustStartAt, mustEndAt) New<>(comparer, elements) Not<>(comparer, elements)
Legend Class Struct Enum Interface Delegate | Constructor Method Property Event Field |
| Extension method: Generex<T, TResult> CreateRecursiveGenerex<T, TResult>(this T[], TResult, Func<Generex<T, TResult>, Generex<T, TResult>>)Declarationpublic static Generex<T, TResult> CreateRecursiveGenerex<T, TResult>(
this T[] input,
TResult example,
Func<Generex<T, TResult>, Generex<T, TResult>> generator
) Summary
Generates a recursive regular expression, i.e. one that can contain itself, allowing the matching of
arbitrarily nested expressions. Generic type parametersT |
Type of the objects in the collection against which the regular expression will be matched. | TResult |
Type of the result object associated with each match of the regular expression. |
Parametersthis T[] | input |
The value of this parameter is ignored, but its static type is used for type inference to enable matching of
collections of anonymous types. | TResult | example |
The value of this parameter is ignored, but its static type is used for type inference to enable regular
expressions that return result objects of anonymous types. | Func<Generex<T, TResult>, Generex<T, TResult>> | generator |
A function that generates the regular expression from an object that recursively represents the result. |
See also |