Merges two enumerables using the specified comparison predicate (the predicate returns the property or value to compare on, using GenericComparer).
public static IEnumerable<T> Merge<T>(this IEnumerable<T> src, IEnumerable<T> added,
Func<T, object> predicate)| parameter | description |
|---|---|
| T | Items type |
| src | Source collection |
| added | Collection to merge the source with |
| predicate | Predicate to obtain the property to compare on |
Merged enumeration
- class EnumerableExtensions
- namespace Wokhan.Collections.Generic.Extensions
Merges two enumerables using the specified comparer. Does use a Set (as defined in .Net reference source) internally to optimize merging.
public static IEnumerable<T> Merge<T>(this IEnumerable<T> src, IEnumerable<T> added,
IEqualityComparer<T> comparer)| parameter | description |
|---|---|
| T | |
| src | Source collection |
| added | Collection to merge the source with |
| comparer | Equality comparer |
Merged enumeration
- class EnumerableExtensions
- namespace Wokhan.Collections.Generic.Extensions