Member group
ToDictionaryOrException
Type: EnumerableOption<T>
Namespace: System.Linq
Assembly: Raven.Core.dll
Source file: LinqExtensions.rvn
Overloads / Variants
ToDictionaryOrException
static func ToDictionaryOrException<T, TKey, TValue>(self: IEnumerable<T>, keySelector: T -> TKey, elementSelector: T -> TValue) -> Result<Dictionary<TKey, TValue>, Exception>
Source file: LinqExtensions.rvn
Materializes projected elements as a dictionary and captures any exception as an error.
ToDictionaryOrException
static func ToDictionaryOrException<T, TKey>(self: IEnumerable<T>, keySelector: T -> TKey) -> Result<Dictionary<TKey, T>, Exception>
Source file: LinqExtensions.rvn
Materializes the sequence as a dictionary and captures any exception as an error.