 | ExtensionMethodsForEachT Method |
For each item in an enumerable
Namespace: SanteDBAssembly: SanteDB.Core.Model (in SanteDB.Core.Model.dll) Version: 3.0.2081-alpha+0a330d5f5a5d3cb3e6e945ef530e94ac5671b49c
Syntaxpublic static void ForEach<T>(
this IEnumerable<T> items,
Action<T> action
)
<ExtensionAttribute>
Public Shared Sub ForEach(Of T) (
items As IEnumerable(Of T),
action As Action(Of T)
)
public:
[ExtensionAttribute]
generic<typename T>
static void ForEach(
IEnumerable<T>^ items,
Action<T>^ action
)
[<ExtensionAttribute>]
static member ForEach :
items : IEnumerable<'T> *
action : Action<'T> -> unit Parameters
- items IEnumerableT
[Missing <param name="items"/> documentation for "M:SanteDB.ExtensionMethods.ForEach``1(System.Collections.Generic.IEnumerable{``0},System.Action{``0})"]
- action ActionT
[Missing <param name="action"/> documentation for "M:SanteDB.ExtensionMethods.ForEach``1(System.Collections.Generic.IEnumerable{``0},System.Action{``0})"]
Type Parameters
- T
[Missing <typeparam name="T"/> documentation for "M:SanteDB.ExtensionMethods.ForEach``1(System.Collections.Generic.IEnumerable{``0},System.Action{``0})"]
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).
See Also