DiscriminatedUnionIEnumerableExtensions.

MergeItem<Type1, Type2, Type3, Type4, Type5, Type6>(IEnumerable<DiscriminatedUnion<Type1, Type2, Type3, Type4, Type5>>, Type6) Method

Summary

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

Syntax

public static IEnumerable<DiscriminatedUnion<Type1, Type2, Type3, Type4, Type5, Type6>> MergeItem<Type1, Type2, Type3, Type4, Type5, Type6>(this IEnumerable<DiscriminatedUnion<Type1, Type2, Type3, Type4, Type5>> values, Type6 item)

Type Parameters

Name Description
Type1 Type1
Type2 Type2
Type3 Type3
Type4 Type4
Type5 Type5
Type6 Type6

Parameters

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

Return Value

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