Class EnumerableExtremumExtensions
- Namespace
- Garyon.Extensions
- Assembly
- Garyon.dll
Provides extensions related to getting the extremum of a collection.
public static class EnumerableExtremumExtensions
- Inheritance
-
EnumerableExtremumExtensions
- Inherited Members
Methods
Extremum<T>(IEnumerable<T>, Extremum)
Gets the extremum of a collection.
public static T? Extremum<T>(this IEnumerable<T> source, Extremum extremum)
Parameters
sourceIEnumerable<T>The source collection whose extremum to get.
extremumExtremumThe kind of extremum to get.
Returns
- T
The extremum of the collection.
Type Parameters
TThe type of elements stored in the collection.
Extremum<T>(IEnumerable<T>, Extremum, Func<T, decimal>)
Transforms all elements of the collection to decimal, and gets the extremum of the transformed collection.
public static decimal Extremum<T>(this IEnumerable<T> source, Extremum extremum, Func<T, decimal> selector)
Parameters
sourceIEnumerable<T>The source collection whose transformed collection's extremum to get.
extremumExtremumThe kind of extremum to get.
selectorFunc<T, decimal>The selector function that transforms every element of the collection into decimal.
Returns
- decimal
The extremum of the transformed collection.
Type Parameters
TThe type of elements stored in the collection.
Extremum<T>(IEnumerable<T>, Extremum, Func<T, double>)
Transforms all elements of the collection to double, and gets the extremum of the transformed collection.
public static double Extremum<T>(this IEnumerable<T> source, Extremum extremum, Func<T, double> selector)
Parameters
sourceIEnumerable<T>The source collection whose transformed collection's extremum to get.
extremumExtremumThe kind of extremum to get.
selectorFunc<T, double>The selector function that transforms every element of the collection into double.
Returns
- double
The extremum of the transformed collection.
Type Parameters
TThe type of elements stored in the collection.
Extremum<T>(IEnumerable<T>, Extremum, Func<T, int>)
Transforms all elements of the collection to int, and gets the extremum of the transformed collection.
public static int Extremum<T>(this IEnumerable<T> source, Extremum extremum, Func<T, int> selector)
Parameters
sourceIEnumerable<T>The source collection whose transformed collection's extremum to get.
extremumExtremumThe kind of extremum to get.
selectorFunc<T, int>The selector function that transforms every element of the collection into int.
Returns
- int
The extremum of the transformed collection.
Type Parameters
TThe type of elements stored in the collection.
Extremum<T>(IEnumerable<T>, Extremum, Func<T, long>)
Transforms all elements of the collection to long, and gets the extremum of the transformed collection.
public static long Extremum<T>(this IEnumerable<T> source, Extremum extremum, Func<T, long> selector)
Parameters
sourceIEnumerable<T>The source collection whose transformed collection's extremum to get.
extremumExtremumThe kind of extremum to get.
selectorFunc<T, long>The selector function that transforms every element of the collection into long.
Returns
- long
The extremum of the transformed collection.
Type Parameters
TThe type of elements stored in the collection.
Extremum<T>(IEnumerable<T>, Extremum, Func<T, decimal?>)
Transforms all elements of the collection to decimal?, and gets the extremum of the transformed collection.
public static decimal? Extremum<T>(this IEnumerable<T> source, Extremum extremum, Func<T, decimal?> selector)
Parameters
sourceIEnumerable<T>The source collection whose transformed collection's extremum to get.
extremumExtremumThe kind of extremum to get.
selectorFunc<T, decimal?>The selector function that transforms every element of the collection into decimal?.
Returns
- decimal?
The extremum of the transformed collection.
Type Parameters
TThe type of elements stored in the collection.
Extremum<T>(IEnumerable<T>, Extremum, Func<T, double?>)
Transforms all elements of the collection to double?, and gets the extremum of the transformed collection.
public static double? Extremum<T>(this IEnumerable<T> source, Extremum extremum, Func<T, double?> selector)
Parameters
sourceIEnumerable<T>The source collection whose transformed collection's extremum to get.
extremumExtremumThe kind of extremum to get.
selectorFunc<T, double?>The selector function that transforms every element of the collection into double?.
Returns
- double?
The extremum of the transformed collection.
Type Parameters
TThe type of elements stored in the collection.
Extremum<T>(IEnumerable<T>, Extremum, Func<T, int?>)
Transforms all elements of the collection to int?, and gets the extremum of the transformed collection.
public static int? Extremum<T>(this IEnumerable<T> source, Extremum extremum, Func<T, int?> selector)
Parameters
sourceIEnumerable<T>The source collection whose transformed collection's extremum to get.
extremumExtremumThe kind of extremum to get.
selectorFunc<T, int?>The selector function that transforms every element of the collection into int?.
Returns
- int?
The extremum of the transformed collection.
Type Parameters
TThe type of elements stored in the collection.
Extremum<T>(IEnumerable<T>, Extremum, Func<T, long?>)
Transforms all elements of the collection to long?, and gets the extremum of the transformed collection.
public static long? Extremum<T>(this IEnumerable<T> source, Extremum extremum, Func<T, long?> selector)
Parameters
sourceIEnumerable<T>The source collection whose transformed collection's extremum to get.
extremumExtremumThe kind of extremum to get.
selectorFunc<T, long?>The selector function that transforms every element of the collection into long?.
Returns
- long?
The extremum of the transformed collection.
Type Parameters
TThe type of elements stored in the collection.
Extremum<T>(IEnumerable<T>, Extremum, Func<T, float?>)
Transforms all elements of the collection to float?, and gets the extremum of the transformed collection.
public static float? Extremum<T>(this IEnumerable<T> source, Extremum extremum, Func<T, float?> selector)
Parameters
sourceIEnumerable<T>The source collection whose transformed collection's extremum to get.
extremumExtremumThe kind of extremum to get.
selectorFunc<T, float?>The selector function that transforms every element of the collection into float?.
Returns
- float?
The extremum of the transformed collection.
Type Parameters
TThe type of elements stored in the collection.
Extremum<T>(IEnumerable<T>, Extremum, Func<T, float>)
Transforms all elements of the collection to float, and gets the extremum of the transformed collection.
public static float Extremum<T>(this IEnumerable<T> source, Extremum extremum, Func<T, float> selector)
Parameters
sourceIEnumerable<T>The source collection whose transformed collection's extremum to get.
extremumExtremumThe kind of extremum to get.
selectorFunc<T, float>The selector function that transforms every element of the collection into float.
Returns
- float
The extremum of the transformed collection.
Type Parameters
TThe type of elements stored in the collection.
Extremum<TSource, TResult>(IEnumerable<TSource>, Extremum, Func<TSource, TResult?>)
Transforms all elements of the collection to
TResult?, and gets the extremum of the
transformed collection.
public static TResult? Extremum<TSource, TResult>(this IEnumerable<TSource> source, Extremum extremum, Func<TSource, TResult?> selector)
Parameters
sourceIEnumerable<TSource>The source collection whose transformed collection's extremum to get.
extremumExtremumThe kind of extremum to get.
selectorFunc<TSource, TResult>The selector function that transforms every element of the collection into
TResult?.
Returns
- TResult
The extremum of the transformed collection.
Type Parameters
TSourceThe type of elements stored in the collection.
TResultThe type of the transformed elements.