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>>)

Declaration

public 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 parameters

T 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.

Parameters

this 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.
TResultexample 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