Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Method: TOtherGenerex Then<TOtherGenerex, TOtherMatch, TOtherGenerexMatch>(Func<TGenerexMatch, GenerexBase<T, TOtherMatch, TOtherGenerex, TOtherGenerexMatch>>)

  • Declared in: RT.Generexes.GenerexBase<T, TMatch, TGenerex, TGenerexMatch>

Declaration

public TOtherGenerex Then<TOtherGenerex, TOtherMatch, TOtherGenerexMatch>(
    Func<TGenerexMatch, GenerexBase<T, TOtherMatch, TOtherGenerex, TOtherGenerexMatch>> selector
)

Summary

Returns a regular expression that matches this regular expression, then uses a specified selector to create a new regular expression from the match, and then matches the new regular expression.

Generic type parameters

TOtherGenerex
  • Must derive from: RT.Generexes.GenerexBase<T, TOtherMatch, TOtherGenerex, TOtherGenerexMatch>.
Type of the regular expression generated by the selector.
TOtherMatch Type of internal match information used by TOtherGenerex (i.e. int or LengthAndResult<T>).
TOtherGenerexMatch Type of match object returned by matches of TOtherGenerex.

Parameters

Func<TGenerexMatch, GenerexBase<T, TOtherMatch, TOtherGenerex, TOtherGenerexMatch>>selector A delegate that creates a new regular expression from a match of the current regular expression.

Returns

The resulting regular expression.

Remarks

Regular expressions created by this method (and several other overloads listed below) cannot match backwards. Thus, they cannot be used in calls to any of the following methods:

The overloads affected by this restriction are:

  • GenerexBase<T, TMatch, TGenerex, TGenerexMatch>.Then<TOtherGenerex, TOtherMatch, TOtherGenerexMatch>(Func<TGenerexMatch, GenerexBase<T, TOtherMatch, TOtherGenerex, TOtherGenerexMatch>>) (this method)
  • GenerexWithResultBase<T, TResult, TGenerex, TGenerexMatch>.ThenRaw<TOtherGenerex, TOtherGenerexMatch>(Func<TResult, GenerexNoResultBase<T, TOtherGenerex, TOtherGenerexMatch>>)
  • GenerexWithResultBase<T, TResult, TGenerex, TGenerexMatch>.ThenRaw<TOtherGenerex, TOtherResult, TOtherGenerexMatch>(Func<TResult, GenerexWithResultBase<T, TOtherResult, TOtherGenerex, TOtherGenerexMatch>>)
  • all overloads of ThenExpect and ThenExpectRaw.