Table of Contents

Constructor EnumDropDown

Namespace
Skyline.DataMiner.Utils.InteractiveAutomationScript
Assembly
Skyline.DataMiner.Utils.InteractiveAutomationScriptToolkit.dll

EnumDropDown(ICollection<T>)

Initializes a new instance of the EnumDropDown<T>

public EnumDropDown(ICollection<T> exclude = null)

Parameters

exclude ICollection<T>

Values of the enum to exclude as options from the dropdown.

Remarks

The display value of the enum is determined by the presence of the DescriptionAttribute. If this attribute isn't defined, the .ToString() representation is used.

EnumDropDown(Func<T, string>, ICollection<T>)

Initializes a new instance of the EnumDropDown<T>

public EnumDropDown(Func<T, string> convertValueToString, ICollection<T> exclude = null)

Parameters

convertValueToString Func<T, string>

Function to map the enum value to its string representation.

exclude ICollection<T>

Values of the enum to exclude as options from the dropdown.