Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Method: TOtherGenerex ThenRaw<TOtherGenerex, TOtherResult, TOtherGenerexMatch>(Func<TResult, GenerexWithResultBase<T, TOtherResult, TOtherGenerex, TOtherGenerexMatch>>)

Declaration

public TOtherGenerex ThenRaw<TOtherGenerex, TOtherResult, TOtherGenerexMatch>(
    Func<TResult, GenerexWithResultBase<T, TOtherResult, 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 result of the match, and then matches the new regular expression. This regular expression’s result object is replaced with the new one’s.

Generic type parameters

TOtherGenerex
  • Must derive from: RT.Generexes.GenerexWithResultBase<T, TOtherResult, TOtherGenerex, TOtherGenerexMatch>.
Type of the regular expression generated by the selector.
TOtherResult Type of the result object associated with the regular expression generated by the selector.
TOtherGenerexMatch
  • Must derive from: RT.Generexes.GenerexMatch<T, TOtherResult>.
Type of match object returned by matches of TOtherGenerex.

Parameters

Func<TResult, GenerexWithResultBase<T, TOtherResult, TOtherGenerex, TOtherGenerexMatch>>selector A delegate that creates a new regular expression from the result of a match of the current regular expression.

Returns

The resulting regular expression.

Remarks

Regular expressions created by this method cannot match backwards. The full set of affected methods is listed at GenerexBase<T, TMatch, TGenerex, TGenerexMatch>.Then<TOtherGenerex, TOtherMatch, TOtherGenerexMatch>(Func<TGenerexMatch, GenerexBase<T, TOtherMatch, TOtherGenerex, TOtherGenerexMatch>>).