Click or drag to resize

hookLastHookLastT Method (IEnumerableT, IGuardTupleT, FuncT, Boolean)

Namespace:  WhetStone.Looping
Assembly:  WhetStone (in WhetStone.dll) Version: 1.0.4.0 (1.0.0.0)
Syntax
C#
public static IEnumerable<T> HookLast<T>(
	this IEnumerable<T> this,
	IGuard<Tuple<T>> sink,
	Func<T, bool> critiria
)

Parameters

this
Type: System.Collections.GenericIEnumerableT
The IEnumerableT to hook to.
sink
Type: WhetStone.GuardIGuardTupleT
The IGuardT to update.
critiria
Type: SystemFuncT, Boolean
The criteria that finds the last element

Type Parameters

T
The type of the IEnumerableT

Return Value

Type: IEnumerableT
An IEnumerableT that sets sink to its last enumerated value that matches critiria.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerableT. 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
If sink contains , a last value has not yet been set.
See Also