Skip to main content
.NET Framework 4.6.2+

XPQueryExtensions.ToLookupAsync Method

Name Parameters Description
ToLookupAsync<T, TKey>(IQueryable<T>, Func<T, TKey>, IEqualityComparer<TKey>, CancellationToken) static query, keySelector, equalityComparer, cancellationToken Asynchronously enumerates a query and uses a key selector and a comparer to construct a Lookup<TKey,TElement>.
ToLookupAsync<T, TKey>(IQueryable<T>, Func<T, TKey>, CancellationToken) static query, keySelector, cancellationToken Asynchronously enumerates a query and uses a key selector to construct a Lookup<TKey,TElement>.
ToLookupAsync<T, TKey, TElement>(IQueryable<T>, Func<T, TKey>, Func<T, TElement>, IEqualityComparer<TKey>, CancellationToken) static query, keySelector, elementSelector, equalityComparer, cancellationToken Asynchronously enumerates a query and uses a key selector, an element selector and an comparer to construct a Lookup<TKey,TElement>.
ToLookupAsync<T, TKey, TElement>(IQueryable<T>, Func<T, TKey>, Func<T, TElement>, CancellationToken) static query, keySelector, elementSelector, cancellationToken Asynchronously enumerates a query and uses a key selector and an element selector to construct a Lookup<TKey,TElement>.