Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Extension method: Generex<T> CreateRecursiveGenerex<T>(this T[], Func<Generex<T>, Generex<T>>)

Declaration

public static Generex<T> CreateRecursiveGenerex<T>(
    this T[] input,
    Func<Generex<T>, Generex<T>> 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.

Parameters

this T[]input The value of this parameter is ignored, but can be used for type inference to enable matching of collections of anonymous types.
Func<Generex<T>, Generex<T>>generator A function that generates the regular expression from an object that recursively represents the result.

See also