Telerik UI for Windows Phone by Progress

Applies the given function to the objects in this IEnumerable instance.

Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Core (in Telerik.Windows.Core.dll) Version: 2013.1.422.2040 (2013.1.0422.2040)


public static void Apply<T>(
	this IEnumerable<T> objects,
	Action<T> function,
	Predicate<T> predicate = null
Visual Basic
<ExtensionAttribute> _
Public Shared Sub Apply(Of T) ( _
	objects As IEnumerable(Of T), _
	function As Action(Of T), _
	Optional predicate As Predicate(Of T) = Nothing _
Visual C++
generic<typename T>
static void Apply(
	IEnumerable<T>^ objects, 
	Action<T>^ function, 
	Predicate<T>^ predicate = nullptr


Type: System.Collections.Generic..::..IEnumerable<(Of <(<'T>)>)>
The objects to which to apply the function argument.
Type: System..::..Action<(Of <(<'T>)>)>
The function to apply.
predicate (Optional)
Type: System..::..Predicate<(Of <(<'T>)>)>
The function argument will be applied only if this predicate returns true or if it is null.

Type Parameters


Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerable<(Of <(<'T>)>)>. 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