Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Static method: Generex<T, TResult> Recursive<T, TResult>(Func<Generex<T, TResult>, Generex<T, TResult>>)

Declaration

public static Generex<T, TResult> Recursive<T, TResult>(
    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

Func<Generex<T, TResult>, Generex<T, TResult>>generator A function that generates the regular expression from an object that recursively represents the result.