Click or drag to resize

ExtensionMethodsForEachT Method

For each item in an enumerable

Namespace: SanteDB
Assembly: SanteDB.Core.Model (in SanteDB.Core.Model.dll) Version: 3.0.2081-alpha+0a330d5f5a5d3cb3e6e945ef530e94ac5671b49c
Syntax
public static void ForEach<T>(
	this IEnumerable<T> items,
	Action<T> action
)

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