PSUtility.Apply<T> Method (IEnumerable<T>, Action<T>)
Reserved for internal use.
Namespace: Microsoft.Office.Project.Server.Library
Assembly: Microsoft.Office.Project.Server.Library (in Microsoft.Office.Project.Server.Library.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function Apply(Of T) ( _
enumerable As IEnumerable(Of T), _
fn As Action(Of T) _
) As IEnumerable(Of T)
'Usage
Dim enumerable As IEnumerable(Of T)
Dim fn As Action(Of T)
Dim returnValue As IEnumerable(Of T)
returnValue = enumerable.Apply(fn)
public static IEnumerable<T> Apply<T>(
this IEnumerable<T> enumerable,
Action<T> fn
)
Type Parameters
- T
Parameters
- enumerable
Type: System.Collections.Generic.IEnumerable<T>
- fn
Type: System.Action<T>
Return Value
Type: System.Collections.Generic.IEnumerable<T>
Returns IEnumerable<T>.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerable<T>. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=office.14) or https://msdn.microsoft.com/en-us/library/bb383977(v=office.14).