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