Hide

YetaWF.Core Package Documentation

Display
Print

YetaWF.Core.Components.Enums.GetEnumSelectionList Method

Given an enum type, returns a collection suitable for use with a DropDownList component.

Class: YetaWF.Core.Components.Enums
Namespace: YetaWF.Core.Components
Assembly: YetaWF.Core

Syntax

public static List<SelectionItem<int>> GetEnumSelectionList(
    Type enumType,
    bool showSelect = false );

Parameters

enumType

The type of the enum.

showSelect

Defines whether the first entry "(select)" should be generated.

Return Value

Returns a collection suitable for use in a DropDownList component.

See Also YetaWF.Core.Components.Enums ClassYetaWF.Core Overview