Returns the maximum value in a sequence of nullable int values.
- source
- A sequence of nullable int values to determine the maximum value of.
A value of type Nullable<Int32> in C# or Nullable(Of Int32) in vbprvb that corresponds to the maximum value in the sequence.
The Enumerable.Max(IEnumerable<Nullable<int>>) method uses the int 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.