Click or drag to resize

CondensedCollectionExtensionsMinTSource, TResult Method (CondensedCollectionTSource, FuncTSource, TResult)

[This is preliminary documentation and is subject to change.]

Invokes a transform function on each element of a generic sequence and returns the minimum resulting value. Optimized for a CondensedCollection.

Namespace:  Condensed.Linq
Assembly:  Condensed (in Condensed.dll) Version: 0.1.0.0 (0.1.0.0)
Syntax
public static TResult Min<TSource, TResult>(
	this CondensedCollection<TSource> source,
	Func<TSource, TResult> selector
)

Parameters

source
Type: CondensedCondensedCollectionTSource
A sequence of values to determine the minimum value of.
selector
Type: SystemFuncTSource, TResult
A transform function to apply to each element.

Type Parameters

TSource
The type of the elements of source.
TResult
The type of the value returned by selector.

Return Value

Type: TResult
The minimum value in the sequence or, if TSource is reference type, null if source is empty or contains only null values.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type CondensedCollectionTSource. 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 is null
InvalidOperationExceptionTResult is a value type and the source collection contains no elements
Remarks
See Also