LinqExtensions Class

Summary

Provides linqextensions usng discriminated unions.
Namespace
FunctionalSharp.DiscriminatedUnions
Base Types
  • object
graph TD Base0["object"]-->Type Type["LinqExtensions"] class Type type-node

Syntax

public static class LinqExtensions

Methods

Name Value Summary
SafeSingle<T>(IEnumerable<T>, Func<T, bool>) DiscriminatedUnion<T, MultipleResultsException, EmptySequenceException>
provides a mechanism to use Single on a collection that returns a discriminated union instead of an exception.
static