DiscriminatedUnionIEnumerableExtensions.

Merge<Type1, Type2, Type3, Type4>(IEnumerable<DiscriminatedUnion<Type1, Type2, Type3>>, IEnumerable<Type4>) Method

Summary

Merges the item intos the existing discriminatedunions resulting in a new enumerable of discriminated unions with the type of the items as a new option.

Syntax

public static IEnumerable<DiscriminatedUnion<Type1, Type2, Type3, Type4>> Merge<Type1, Type2, Type3, Type4>(this IEnumerable<DiscriminatedUnion<Type1, Type2, Type3>> values, IEnumerable<Type4> items)

Type Parameters

Name Description
Type1 Type1
Type2 Type2
Type3 Type3
Type4 Type4

Parameters

Name Type Description
values IEnumerable<DiscriminatedUnion<Type1, Type2, Type3>> existing Discriminated unions
items IEnumerable<Type4>

Return Value

Type Description
IEnumerable<DiscriminatedUnion<Type1, Type2, Type3, Type4>>