Chain.Case Method

Definition

Overloads

Case<R>(Regex, ContextualSelector<String,R>)

Constructs a case based on a regular expression.

Case<T,R>(Func<T,Boolean>, ContextualSelector<T,R>)

Constructs a case.

Case<R>(Regex, ContextualSelector<String,R>)

Constructs a case based on a regular expression.

public static Microsoft.Bot.Builder.Dialogs.ICase<string,R> Case<R> (System.Text.RegularExpressions.Regex regex, Microsoft.Bot.Builder.Dialogs.ContextualSelector<string,R> selector);
static member Case : System.Text.RegularExpressions.Regex * Microsoft.Bot.Builder.Dialogs.ContextualSelector<string, 'R> -> Microsoft.Bot.Builder.Dialogs.ICase<string, 'R>
Public Function Case(Of R) (regex As Regex, selector As ContextualSelector(Of String, R)) As ICase(Of String, R)

Type Parameters

R

The type of the object returned by selector.

Parameters

regex
Regex

The regex for condition.

selector
ContextualSelector<String,R>

The contextual selector for the case.

Returns

The case.

Applies to

Case<T,R>(Func<T,Boolean>, ContextualSelector<T,R>)

Constructs a case.

public static Microsoft.Bot.Builder.Dialogs.ICase<T,R> Case<T,R> (Func<T,bool> condition, Microsoft.Bot.Builder.Dialogs.ContextualSelector<T,R> selector);
static member Case : Func<'T, bool> * Microsoft.Bot.Builder.Dialogs.ContextualSelector<'T, 'R> -> Microsoft.Bot.Builder.Dialogs.ICase<'T, 'R>
Public Function Case(Of T, R) (condition As Func(Of T, Boolean), selector As ContextualSelector(Of T, R)) As ICase(Of T, R)

Type Parameters

T

The type of incoming value to case.

R

The type of the object returned by selector.

Parameters

condition
Func<T,Boolean>

The condition of the case.

selector
ContextualSelector<T,R>

The contextual selector of the case.

Returns

Applies to