TraceExceptionsExtensions.

Select<TResult>(IEnumerable<IDocument>, IExecutionContext, Func<IDocument, TResult>) Method

Summary

Evaluates a LINQ Select method and traces any exceptions.

Syntax

public static IEnumerable<TResult> Select<TResult>(this IEnumerable<IDocument> source, IExecutionContext context, Func<IDocument, TResult> selector)

Type Parameters

Name Description
TResult The type of the result.

Parameters

Name Type Description
source IEnumerable<IDocument> The source sequence.
context IExecutionContext The execution context.
selector Func<IDocument, TResult> The selector function.

Return Value

Type Description
IEnumerable<TResult> The result sequence.
GitHub