Class IEnumerableExtensions
public static class IEnumerableExtensions
- Inheritance
-
IEnumerableExtensions
- Inherited Members
Methods
MaxBy<T>(IEnumerable<T>, Func<T, IComparable>)
public static T MaxBy<T>(this IEnumerable<T> enumerable, Func<T, IComparable> selector)
Parameters
enumerable
IEnumerable<T>selector
Func<T, IComparable>
Returns
- T
Type Parameters
T
RandomElement<T>(IEnumerable<T>)
public static T RandomElement<T>(this IEnumerable<T> enumerable)
Parameters
enumerable
IEnumerable<T>
Returns
- T
Type Parameters
T