System.Linq.Enumerable.Min Method

Returns the minimum value in a sequence of nullable int values.

Syntax

public static Nullable<int> Min (this IEnumerable<Nullable<int>> source)

Parameters

source
A sequence of nullable int values to determine the minimum value of.

Returns

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

Remarks

The Enumerable.Min(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 Min() clause translates to an invocation of erload:System.Linq.Enumerable.Min.

Requirements

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