Click or drag to resize

MoveResultExtensionsMinByOrDefaultTSource, TKey Method

Finds the minimum TSource in source based on a key.

Namespace:  ff14bot.Pathing
Assembly:  RebornBuddy (in RebornBuddy.exe) Version: 3.3.1; net-4.5.win32; release
Syntax
C#
public static TSource MinByOrDefault<TSource, TKey>(
	this IEnumerable<TSource> source,
	Func<TSource, TKey> keySelector
)

Parameters

source
Type: System.Collections.GenericIEnumerableTSource
The source.
keySelector
Type: SystemFuncTSource, TKey
A delegate that extracts a key from an item.

Type Parameters

TSource
The source parameter type.
TKey
The key type to compare the source on.

Return Value

Type: TSource
The source item that has the smallest extracted key, or default(TSource) if source is empty.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerableTSource. 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).
Exceptions
ExceptionCondition
ArgumentNullExceptionsource or keySelector are null.
See Also