CollectionExtensions.MyMax Method

This element is introduced in Windows PowerShell 5.0.


Namespace: Microsoft.OneGet.Utility.Extensions
Assembly: Microsoft.OneGet.Utility (in Microsoft.OneGet.Utility.dll)

'Usage
Dim collection As IEnumerable(Of T)
Dim func As Func(Of T, TCompare)
Dim returnValue As T

returnValue = CollectionExtensions.MyMax(collection, func)

[ExtensionAttribute] 
public static T MyMax<T,TCompare> (
	IEnumerable<T> collection,
	Func<T,TCompare> func
) where TCompare : IComparable<TCompare>

GenericParameters

T

TCompare

Parameters

collection

func

Return Value

Returns Boolean.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

 

Target Platforms


Show: