DiscriminatedUnionIEnumerableExtensions.

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

Summary

Merges to given collections into a discriminated union collection.

Syntax

public static IEnumerable<DiscriminatedUnion<Type1, Type2, Type3>> Merge<Type1, Type2, Type3>(this IEnumerable<Type1> type1Values, IEnumerable<Type2> type2Values, IEnumerable<Type3> type3Values)

Type Parameters

Name Description
Type1 Type1
Type2 Type2
Type3 Type3

Parameters

Name Type Description
type1Values IEnumerable<Type1> a collection to merge
type2Values IEnumerable<Type2> a collection to merge
type3Values IEnumerable<Type3> a collection to merge

Return Value

Type Description
IEnumerable<DiscriminatedUnion<Type1, Type2, Type3>> Discriminated unions of all types.