Class LinqExtensions
- Namespace
- Lime
- Assembly
- Lime.dll
public static class LinqExtensions
- Inheritance
-
LinqExtensions
- Inherited Members
Methods
Distinct<TSource>(IEnumerable<TSource>, Func<TSource, TSource, bool>)
Returns distinct elements from a sequence by using a specified Func to compare values.
public static IEnumerable<TSource> Distinct<TSource>(this IEnumerable<TSource> source, Func<TSource, TSource, bool> comparer)
Parameters
source
IEnumerable<TSource>The sequence to remove duplicate elements from.
comparer
Func<TSource, TSource, bool>A
Func<TSource, TSource, bool>
Returns
- IEnumerable<TSource>
An System.Collections.Generic.IEnumerable`1 that contains distinct elements from the source sequence.
Type Parameters
TSource
Except<TSource>(IEnumerable<TSource>, IEnumerable<TSource>, Func<TSource, TSource, bool>)
Returns all items in the first collection except the ones in the second collection that match the lambda condition
public static IEnumerable<TSource> Except<TSource>(this IEnumerable<TSource> first, IEnumerable<TSource> second, Func<TSource, TSource, bool> comparer)
Parameters
first
IEnumerable<TSource>second
IEnumerable<TSource>comparer
Func<TSource, TSource, bool>
Returns
- IEnumerable<TSource>
The filtered list
Type Parameters
TSource
Intersect<T>(IEnumerable<T>, IEnumerable<T>, Func<T, T, bool>)
Returns all items in the first collection that intersect the ones in the second collection that match the lambda condition
public static IEnumerable<T> Intersect<T>(this IEnumerable<T> first, IEnumerable<T> second, Func<T, T, bool> comparer)
Parameters
first
IEnumerable<T>The first list
second
IEnumerable<T>The second list
comparer
Func<T, T, bool>
Returns
- IEnumerable<T>
The filtered list
Type Parameters
T
The type