DrilldownFieldChoiceExtensionToEnumerableFlatChoices Method

Flattens the hierarchical choices into a single list, optionally including only leaf nodes.

Definition

Namespace: FileHold.LibraryManager.Extensions
Assembly: FileHold.LibraryManager (in FileHold.LibraryManager.dll) Version: 17.2.0.0
C#
public static IEnumerable<DrilldownFieldChoice> ToEnumerableFlatChoices(
	this IEnumerable<DrilldownFieldChoice> choices,
	bool onlyEdges,
	string separator = null
)

Parameters

choices  IEnumerableDrilldownFieldChoice
The initial set of choices.
onlyEdges  Boolean
Indicates whether to include only leaf nodes in the flattened list.
separator  String  (Optional)
Optional separator to use when merging paths.

Return Value

IEnumerableDrilldownFieldChoice
An enumerable of flattened choices.

Usage Note

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