GeneralUtilities.MaxOrDefault<T,TResult> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public static TResult MaxOrDefault<T,TResult> (this System.Collections.Generic.IEnumerable<T> sequence, Func<T,TResult> selector, TResult defaultValue);
static member MaxOrDefault : seq<'T> * Func<'T, 'Result> * 'Result -> 'Result
<Extension()>
Public Function MaxOrDefault(Of T, TResult) (sequence As IEnumerable(Of T), selector As Func(Of T, TResult), defaultValue As TResult) As TResult
Type Parameters
- T
- TResult
Parameters
- sequence
- IEnumerable<T>
- selector
- Func<T,TResult>
- defaultValue
- TResult
Returns
TResult