Click or drag to resize

CondensedCollectionExtensionsLastTSource Method

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

Returns the last element in a sequence that satisfies a specified condition. Optimized for a CondensedCollection.

Namespace:  Condensed.Linq
Assembly:  Condensed (in Condensed.dll) Version: 0.1.0.0 (0.1.0.0)
Syntax
public static TSource Last<TSource>(
	this CondensedCollection<TSource> source,
	Func<TSource, bool> predicate
)

Parameters

source
Type: CondensedCondensedCollectionTSource
The collection to return an element from.
predicate
Type: SystemFuncTSource, Boolean
A function to test each element for a condition.

Type Parameters

TSource
The type of the elements of source.

Return Value

Type: TSource
The last element in the sequence that passes the test in the specified predicate function.

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).
Remarks
See Also