Summary
Runs Actions for the matched types.
- Namespace
- FunctionalSharp
.DiscriminatedUnions - Containing Type
- DiscriminatedUnion
<Type1, Type2, Type3, Type4, Type5>
Syntax
public void Match(Action<Type1> Action1, Action<Type2> Action2, Action<Type3> Action3, Action<Type4> Action4, Action<Type5> Action5)
Parameters
Name | Type | Description |
---|---|---|
Action1 | Action |
Action to run for Type1 |
Action2 | Action |
Action to run for Type2 |
Action3 | Action |
Action to run for Type3 |
Action4 | Action |
Action to run for Type4 |
Action5 | Action |
Action to run for Type5 |
Return Value
Type | Description |
---|---|
void |