.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

XPQueryExtensions.ToDictionaryAsync Method

Name Parameters Description
ToDictionaryAsync<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 Dictionary<TKey,TValue>.

ToDictionaryAsync<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 a comparer to construct a Dictionary<TKey,TValue>.

ToDictionaryAsync<T, TKey>(IQueryable<T>, Func<T, TKey>, CancellationToken) static query, keySelector, cancellationToken

Asynchronously enumerates a query and uses a key selector to construct a Dictionary<TKey,TValue>.

ToDictionaryAsync<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 an element selector to construct a Dictionary<TKey,TValue>.