Method TryEvaluateSelector
TryEvaluateSelector(ISelectorInfo)
Evaluates the ISelectorInfo based on the CurrentValue. If this extension cannot evaluate the Selector, returns False. Otherwise, sets the Result and returns true.
Declaration
public bool TryEvaluateSelector(ISelectorInfo selectorInfo)
Parameters
Type | Name | Description |
---|---|---|
ISelectorInfo | selectorInfo |
Returns
Type | Description |
---|---|
bool |
Implements
Examples
The following example shows how to create a source that generates a random number. This could then be combined with a ChooseFormatter to produce different random responses.