Share via


PSUtility.FlattenTree<T> Method

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 FlattenTree(Of T) ( _
    nodeList As IEnumerable(Of T), _
    getNodeChildren As Func(Of T, IEnumerable(Of T)) _
) As IEnumerable(Of T)
'Usage
Dim nodeList As IEnumerable(Of T)
Dim getNodeChildren As Func(Of T, IEnumerable(Of T))
Dim returnValue As IEnumerable(Of T)

returnValue = nodeList.FlattenTree(getNodeChildren)
public static IEnumerable<T> FlattenTree<T>(
    this IEnumerable<T> nodeList,
    Func<T, IEnumerable<T>> getNodeChildren
)

Type Parameters

  • T

Parameters

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).

See Also

Reference

PSUtility Class

PSUtility Members

Microsoft.Office.Project.Server.Library Namespace