System.Linq.Enumerable.Max Method

Returns the maximum value in a sequence of nullable double values.

Syntax

public static Nullable<double> Max (this IEnumerable<Nullable<double>> source)

Parameters

source
A sequence of nullable double values to determine the maximum value of.

Returns

A value of type Nullable<Double> in C# or Nullable(Of Double) in vbprvb that corresponds to the maximum value in the sequence.

Remarks

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

If the source sequence is empty or contains only values that are null, this function returns null.

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