Constructor EnumRadioButtonList
- Namespace
- Skyline.DataMiner.Utils.InteractiveAutomationScript
- Assembly
- Skyline.DataMiner.Utils.InteractiveAutomationScriptToolkit.dll
EnumRadioButtonList(ICollection<T>)
Initializes a new instance of the EnumRadioButtonList<T>
public EnumRadioButtonList(ICollection<T> exclude = null)
Parameters
exclude
ICollection<T>Values of the enum to exclude as options from the radio button list.
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.
EnumRadioButtonList(Func<T, string>, ICollection<T>)
Initializes a new instance of the EnumRadioButtonList<T>
public EnumRadioButtonList(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 radio button list.