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


Merges to given collections into a discriminated union collection.


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

Type Parameters

Name Description
Type1 Type1
Type2 Type2
Type3 Type3
Type4 Type4


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

Return Value

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