Table of Contents

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

source IEnumerable<T>

The source collection whose extremum to get.

extremum Extremum

The kind of extremum to get.

Returns

T

The extremum of the collection.

Type Parameters

T

The 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

source IEnumerable<T>

The source collection whose transformed collection's extremum to get.

extremum Extremum

The kind of extremum to get.

selector Func<T, decimal>

The selector function that transforms every element of the collection into decimal.

Returns

decimal

The extremum of the transformed collection.

Type Parameters

T

The 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

source IEnumerable<T>

The source collection whose transformed collection's extremum to get.

extremum Extremum

The kind of extremum to get.

selector Func<T, double>

The selector function that transforms every element of the collection into double.

Returns

double

The extremum of the transformed collection.

Type Parameters

T

The 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

source IEnumerable<T>

The source collection whose transformed collection's extremum to get.

extremum Extremum

The kind of extremum to get.

selector Func<T, int>

The selector function that transforms every element of the collection into int.

Returns

int

The extremum of the transformed collection.

Type Parameters

T

The 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

source IEnumerable<T>

The source collection whose transformed collection's extremum to get.

extremum Extremum

The kind of extremum to get.

selector Func<T, long>

The selector function that transforms every element of the collection into long.

Returns

long

The extremum of the transformed collection.

Type Parameters

T

The 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

source IEnumerable<T>

The source collection whose transformed collection's extremum to get.

extremum Extremum

The kind of extremum to get.

selector Func<T, decimal?>

The selector function that transforms every element of the collection into decimal?.

Returns

decimal?

The extremum of the transformed collection.

Type Parameters

T

The 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

source IEnumerable<T>

The source collection whose transformed collection's extremum to get.

extremum Extremum

The kind of extremum to get.

selector Func<T, double?>

The selector function that transforms every element of the collection into double?.

Returns

double?

The extremum of the transformed collection.

Type Parameters

T

The 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

source IEnumerable<T>

The source collection whose transformed collection's extremum to get.

extremum Extremum

The kind of extremum to get.

selector Func<T, int?>

The selector function that transforms every element of the collection into int?.

Returns

int?

The extremum of the transformed collection.

Type Parameters

T

The 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

source IEnumerable<T>

The source collection whose transformed collection's extremum to get.

extremum Extremum

The kind of extremum to get.

selector Func<T, long?>

The selector function that transforms every element of the collection into long?.

Returns

long?

The extremum of the transformed collection.

Type Parameters

T

The 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

source IEnumerable<T>

The source collection whose transformed collection's extremum to get.

extremum Extremum

The kind of extremum to get.

selector Func<T, float?>

The selector function that transforms every element of the collection into float?.

Returns

float?

The extremum of the transformed collection.

Type Parameters

T

The 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

source IEnumerable<T>

The source collection whose transformed collection's extremum to get.

extremum Extremum

The kind of extremum to get.

selector Func<T, float>

The selector function that transforms every element of the collection into float.

Returns

float

The extremum of the transformed collection.

Type Parameters

T

The 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

source IEnumerable<TSource>

The source collection whose transformed collection's extremum to get.

extremum Extremum

The kind of extremum to get.

selector Func<TSource, TResult>

The selector function that transforms every element of the collection into TResult?.

Returns

TResult

The extremum of the transformed collection.

Type Parameters

TSource

The type of elements stored in the collection.

TResult

The type of the transformed elements.