System.Linq.Enumerable.Max Method

Returns the maximum value in a sequence of float values.

Syntax

public static float Max (this IEnumerable<float> source)

Parameters

source
A sequence of float values to determine the maximum value of.

Returns

The maximum value in the sequence.

Remarks

The Enumerable.Max(IEnumerable<float>) method uses the float implementation of IComparable`1 to compare values.

In vbprvb query expression syntax, an Aggregate Into Max() clause translates to an invocation of erload:System.Linq.Enumerable.Max.

Requirements

Namespace: System.Linq
Assembly: System.Core (in System.Core.dll)
Assembly Versions: 3.5.0.0, 4.0.0.0