CollectionExtensionsApplyT Method |
Namespace:
Xcalibur.Extensions
Assembly:
Xcalibur.Extensions (in Xcalibur.Extensions.dll) Version: 1.0.4.0 (1.0.0.0)
Syntax public static void Apply<T>(
this IEnumerable<T> items,
Action<T> predicate
)
<ExtensionAttribute>
Public Shared Sub Apply(Of T) (
items As IEnumerable(Of T),
predicate As Action(Of T)
)
public:
[ExtensionAttribute]
generic<typename T>
static void Apply(
IEnumerable<T>^ items,
Action<T>^ predicate
)
[<ExtensionAttribute>]
static member Apply :
items : IEnumerable<'T> *
predicate : Action<'T> -> unit
Parameters
- items
- Type: System.Collections.GenericIEnumerableT
The items. - predicate
- Type: SystemActionT
The predicate.
Type Parameters
- T
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).
Examples 1collection.Apply(x => x.IsSelected = true);
See Also