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
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.