Click or drag to resize

detachDetachT1, T2 Method (IListTupleT1, T2, IGuardT2)

Namespace:  WhetStone.Looping
Assembly:  WhetStone (in WhetStone.dll) Version: 1.0.4.0 (1.0.0.0)
Syntax
C#
public static IList<T1> Detach<T1, T2>(
	this IList<Tuple<T1, T2>> this,
	IGuard<T2> informer1 = null
)

Parameters

this
Type: System.Collections.GenericIListTupleT1, T2
The IListT to transform
informer1 (Optional)
Type: WhetStone.GuardIGuardT2
The IGuardT to which put the second values of the members. Setting to will put the values nowhere.

Type Parameters

T1
The first type of the TupleT1, T2 members.
T2
The second type of the TupleT1, T2 members.

Return Value

Type: IListT1
A new IListT with only the first member of each TupleT1, T2 member. When an element is enumerated, the second element of the original enumerated member is set to be informer1s value.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IListTupleT1, T2. 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).
See Also