Click or drag to resize

CondensedCollectionExtensionsMaxTSource Method (CondensedCollectionTSource, FuncTSource, Int64)

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

Computes the maximum value of a CondensedCollection of Int64 values that are obtained by invoking a transform function on each element of the input sequence. Optimized for a CondensedCollection.

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

Parameters

source
Type: CondensedCondensedCollectionTSource
A CondensedCollection of values to determine the maximum value of.
selector
Type: SystemFuncTSource, Int64
A transform function to apply to each element.

Type Parameters

TSource
The type of the elements of source.

Return Value

Type: Int64
The maximum value of the sequence of 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 or selector is null
InvalidOperationExceptionsource contains no elements
Remarks
See Also