TreeDataStructureExtensionsFlattenTSource Method

Flattens a hierarchical collection of TreeDataStructureT into a list of the same type.

Definition

Namespace: Aliquo.Windows.Base
Assembly: Aliquo.Windows (in Aliquo.Windows.dll) Version: 5.0.9179.22654
C#
public static List<TreeDataStructure<TSource>> Flatten<TSource>(
	this IEnumerable<TreeDataStructure<TSource>> source
)

Parameters

source  IEnumerableTreeDataStructureTSource
An enumerable collection instance of type TreeDataStructureT.

Type Parameters

TSource
The type of the elements of source.

Return Value

ListTreeDataStructureTSource
List<TreeDataStructureT> that contains all the elements of source.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerableTreeDataStructureTSource. 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