Summary
Merges a type into the existing discriminated union list.
- Namespace
- FunctionalSharp
.DiscriminatedUnions - Containing Type
- Discriminated
Union List <Type1, Type2>
Syntax
public DiscriminatedUnionList<Type1, Type2, TypeToMerge> Merge<TypeToMerge>(IEnumerable<TypeToMerge> toMerge)
Type Parameters
Name | Description |
---|---|
TypeToMerge | The type of the items to merge. |
Parameters
Name | Type | Description |
---|---|---|
toMerge | IEnumerable |
The Items to merge. |
Return Value
Type | Description |
---|---|
Discriminated |