Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Method: Generex<T, TResult> Or(T, Func<GenerexMatch<T>, TResult>, IEqualityComparer<T>)

  • Declared in: RT.Generexes.Generex<T, TResult>

Declaration

public Generex<T, TResult> Or(
    T element,
    Func<GenerexMatch<T>, TResult> selector,
    IEqualityComparer<T> comparer
)

Summary

Returns a regular expression that matches either this regular expression or a single element using the specified equality comparer (cf. | in traditional regular expression syntax).

Parameters

Telement The element to match.
Func<GenerexMatch<T>, TResult>selector A selector that returns the result object for the new regular expression based on the element matched.
IEqualityComparer<T>comparer An optional equality comparer to use against the element.