Gamelogic Grids 1 Documentation [Deprecated]
Gamelogic Grids 1 Documentation [Deprecated]
Gamelogic.Extensions.Algorithms
CollectionExtensions Class
CollectionExtensions Methods
MaxBy Method
MaxBy(T) Method (IEnumerable(T), Func(T, IComparable))
MaxBy(TSource, TKey) Method (IEnumerable(TSource), Func(TSource, TKey))
MaxBy(TSource, TKey) Method (IEnumerable(TSource), Func(TSource, TKey), IComparer(TKey))
CollectionExtensions
MaxBy
T
Method (IEnumerable
T
, Func
T
, IComparable
)
Finds the maximum element in the source as scored by the given function.
Namespace:
Gamelogic.Extensions.Algorithms
Assembly:
Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
Copy
public
static
T
MaxBy
<T>(
this
IEnumerable
<T>
source
,
Func
<T,
IComparable
>
score
)
Parameters
source
Type:
System.Collections.Generic
IEnumerable
T
score
Type:
System
Func
T
,
IComparable
Type Parameters
T
Return Value
Type:
T
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IEnumerable
T
. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic)
or
Extension Methods (C# Programming Guide)
.
See Also
Reference
CollectionExtensions Class
MaxBy Overload
Gamelogic.Extensions.Algorithms Namespace