Takes the root object in a parent-child object and returns the collection of objects in the hierarchy.
Namespace: VirtualRadar.InterfaceAssembly: VirtualRadar.Interface (in VirtualRadar.Interface.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public static IEnumerable<T> Flatten<T>(
T root,
Func<T, T> getChild
)
Public Shared Function Flatten(Of T) (
root As T,
getChild As Func(Of T, T)
) As IEnumerable(Of T)
public:
generic<typename T>
static IEnumerable<T>^ Flatten(
T root,
Func<T, T>^ getChild
)
static member Flatten :
root : 'T *
getChild : Func<'T, 'T> -> IEnumerable<'T>
Parameters
- root
- Type: T
- getChild
- Type: SystemFuncT, T
Type Parameters
- T
Return Value
Type:
IEnumerableTSee Also