API Browser

Method

ToListOrError

func ToListOrError<T, E>(errorFactory: Exception -> E) -> Result<List<T>, E>

Declaring type: EnumerableOption<T>
Namespace: System.Linq
Assembly: Raven.Core.dll
Source file: LinqExtensions.rvn

Extension from EnumerableOption<T>.ToListOrError

Materializes the sequence as a list and maps any exception to an error.

Parameters

Name Type Description
self IEnumerable<T>
errorFactory Exception -> E

Return value

Result<List<T>, E>