PatternMatch<T, TResult> Class

Namespace
FunctionalSharp.PatternMatching
Base Types
  • object
graph TD Base0["object"]-->Type Type["PatternMatch<T, TResult>"] class Type type-node

Syntax

public class PatternMatch<T, TResult>

Type Parameters

Name Description
T
TResult

Constructors

Methods

Extension Methods

Name Value Summary
Match<PatternMatch<T, TResult>>() PatternMatchSingleContext<T>
Starts a pattern match for a single value. Subsequent calls to With() need to be used to specify conditions
ToOption<PatternMatch<T, TResult>>() IOption<T>
Turns the type T into an option type.