ContextualSelector<T,R> Delegate
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The contextual selector function.
public delegate R ContextualSelector<in T,R>(IBotContext context, T item);
type ContextualSelector<'T, 'R> = delegate of IBotContext * 'T -> 'R
Public Delegate Function ContextualSelector(Of In T, R)(context As IBotContext, item As T) As R
Type Parameters
- T
The type of value passed to selector.
This type parameter is contravariant. That is, you can use either the type you specified or any type that is less derived. For more information about covariance and contravariance, see Covariance and Contravariance in Generics.- R
The returned type of the selector.
Parameters
- context
- IBotContext
IBotContext passed to selector.
- item
- T
The value passed to selector.
Return Value
R
The value returned by selector.