BuildMaster SDK Reference
Version:

Union<TSource, TKey>(System.Collections.Generic.IEnumerable<TSource> first, System.Collections.Generic.IEnumerable<TSource> second, System.Func<TSource, TKey> getPrimaryKey, System.Collections.Generic.IEqualityComparer<TKey> keyComparer) Method

Syntax

public static IEnumerable<TSource> Union<TSource, TKey>(IEnumerable<TSource> first, IEnumerable<TSource> second, Func<TSource, TKey> getPrimaryKey, IEqualityComparer<TKey> keyComparer)

Parameters

first
Type: System.Collections.Generic.IEnumerable<TSource>
second
Type: System.Collections.Generic.IEnumerable<TSource>
getPrimaryKey
Type: System.Func<TSource, TKey>
keyComparer
Type: System.Collections.Generic.IEqualityComparer<TKey>