Class LinqUtility
Syntax
public static class LinqUtility
Methods
AddRange(IList, IEnumerable)
Declaration
public static void AddRange(this IList list, IEnumerable items)
Parameters
AddRange<T>(ICollection<T>, IEnumerable<T>)
Declaration
public static void AddRange<T>(this ICollection<T> collection, IEnumerable<T> items)
Parameters
Type Parameters
AsReadOnlyCollection<T>(IEnumerable<T>)
Declaration
public static ICollection<T> AsReadOnlyCollection<T>(this IEnumerable<T> enumerable)
Parameters
Returns
Type Parameters
AsReadOnlyList<T>(IEnumerable<T>)
Declaration
public static IList<T> AsReadOnlyList<T>(this IEnumerable<T> enumerable)
Parameters
Returns
Type |
Description |
IList<T> |
|
Type Parameters
Catch<T>(IEnumerable<T>, Action<Exception>)
Declaration
public static IEnumerable<T> Catch<T>(this IEnumerable<T> source, Action<Exception> catch)
Parameters
Returns
Type Parameters
Catch<T>(IEnumerable<T>, ICollection<Exception>)
Declaration
public static IEnumerable<T> Catch<T>(this IEnumerable<T> source, ICollection<Exception> exceptions)
Parameters
Returns
Type Parameters
CatchAsLogError<T>(IEnumerable<T>, String)
Declaration
public static IEnumerable<T> CatchAsLogError<T>(this IEnumerable<T> source, string message)
Parameters
Returns
Type Parameters
CatchAsLogWarning<T>(IEnumerable<T>, String)
Declaration
public static IEnumerable<T> CatchAsLogWarning<T>(this IEnumerable<T> source, string message)
Parameters
Returns
Type Parameters
Concat<T>(IEnumerable[])
Declaration
public static IEnumerable<T> Concat<T>(params IEnumerable[] enumerables)
Parameters
Returns
Type Parameters
DistinctBy<T, TKey>(IEnumerable<T>, Func<T, TKey>)
Declaration
public static IEnumerable<T> DistinctBy<T, TKey>(this IEnumerable<T> items, Func<T, TKey> property)
Parameters
Returns
Type Parameters
Flatten<T>(IEnumerable<T>, Func<T, IEnumerable<T>>)
Declaration
public static IEnumerable<T> Flatten<T>(this IEnumerable<T> source, Func<T, IEnumerable<T>> childrenSelector)
Parameters
Returns
Type Parameters
IntersectAll<T>(IEnumerable<IEnumerable<T>>)
Declaration
public static IEnumerable<T> IntersectAll<T>(this IEnumerable<IEnumerable<T>> groups)
Parameters
Returns
Type Parameters
NotNull<T>(IEnumerable<T>)
Declaration
public static IEnumerable<T> NotNull<T>(this IEnumerable<T> enumerable)
Parameters
Returns
Type Parameters
OrderByDependencies<T>(IEnumerable<T>, Func<T, IEnumerable<T>>, Boolean)
Declaration
public static IEnumerable<T> OrderByDependencies<T>(this IEnumerable<T> source, Func<T, IEnumerable<T>> getDependencies, bool throwOnCycle = true)
Parameters
Returns
Type Parameters
OrderByDependers<T>(IEnumerable<T>, Func<T, IEnumerable<T>>, Boolean)
Declaration
public static IEnumerable<T> OrderByDependers<T>(this IEnumerable<T> source, Func<T, IEnumerable<T>> getDependers, bool throwOnCycle = true)
Parameters
Returns
Type Parameters
ToHashSet<T>(IEnumerable<T>)
Declaration
public static HashSet<T> ToHashSet<T>(this IEnumerable<T> enumerable)
Parameters
Returns
Type Parameters
Yield<T>(T)
Declaration
public static IEnumerable<T> Yield<T>(this T t)
Parameters
Type |
Name |
Description |
T |
t |
|
Returns
Type Parameters