This topic has not yet been rated - Rate this topic

# Enumerable.Max Method

April 12, 2014

Returns the maximum value in a sequence of values.

NameDescription
Max(IEnumerable<Decimal>) Returns the maximum value in a sequence of Decimal values.
Max(IEnumerable<Nullable<Decimal>>) Returns the maximum value in a sequence of nullable Decimal values.
Max(IEnumerable<Double>) Returns the maximum value in a sequence of Double values.
Max(IEnumerable<Nullable<Double>>) Returns the maximum value in a sequence of nullable Double values.
Max<TSource>(IEnumerable<TSource>) Returns the maximum value in a generic sequence.
Max(IEnumerable<Int32>) Returns the maximum value in a sequence of Int32 values.
Max(IEnumerable<Nullable<Int32>>) Returns the maximum value in a sequence of nullable Int32 values.
Max(IEnumerable<Int64>) Returns the maximum value in a sequence of Int64 values.
Max(IEnumerable<Nullable<Int64>>) Returns the maximum value in a sequence of nullable Int64 values.
Max(IEnumerable<Nullable<Single>>) Returns the maximum value in a sequence of nullable Single values.
Max(IEnumerable<Single>) Returns the maximum value in a sequence of Single values.
Max<TSource>(IEnumerable<TSource>, Func<TSource, Decimal>) Invokes a transform function on each element of a sequence and returns the maximum Decimal value.
Max<TSource>(IEnumerable<TSource>, Func<TSource, Double>) Invokes a transform function on each element of a sequence and returns the maximum Double value.
Max<TSource>(IEnumerable<TSource>, Func<TSource, Int32>) Invokes a transform function on each element of a sequence and returns the maximum Int32 value.
Max<TSource>(IEnumerable<TSource>, Func<TSource, Int64>) Invokes a transform function on each element of a sequence and returns the maximum Int64 value.
Max<TSource>(IEnumerable<TSource>, Func<TSource, Nullable<Decimal>>) Invokes a transform function on each element of a sequence and returns the maximum nullable Decimal value.
Max<TSource>(IEnumerable<TSource>, Func<TSource, Nullable<Double>>) Invokes a transform function on each element of a sequence and returns the maximum nullable Double value.
Max<TSource>(IEnumerable<TSource>, Func<TSource, Nullable<Int32>>) Invokes a transform function on each element of a sequence and returns the maximum nullable Int32 value.
Max<TSource>(IEnumerable<TSource>, Func<TSource, Nullable<Int64>>) Invokes a transform function on each element of a sequence and returns the maximum nullable Int64 value.
Max<TSource>(IEnumerable<TSource>, Func<TSource, Nullable<Single>>) Invokes a transform function on each element of a sequence and returns the maximum nullable Single value.
Max<TSource>(IEnumerable<TSource>, Func<TSource, Single>) Invokes a transform function on each element of a sequence and returns the maximum Single value.
Max<TSource, TResult>(IEnumerable<TSource>, Func<TSource, TResult>) Invokes a transform function on each element of a generic sequence and returns the maximum resulting value.
Top