Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Extension method: TSource? MinOrNull<TSource>(this IEnumerable<TSource>)

Declaration

public static TSource? MinOrNull<TSource>(
    this IEnumerable<TSource> source
)

Summary

Returns the minimum resulting value in a sequence, or null if the sequence is empty.

Generic type parameters

TSource
  • Must derive from: System.ValueType.
  • Must have a default constructor.
  • Must be a non-nullable value type.
The type of the elements of source.

Parameters

this IEnumerable<TSource>source A sequence of values to determine the minimum value of.

Returns

The minimum value in the sequence, or null if the sequence is empty.