I have these enums:
private enum FontSizeType
{
XSmall, //9
Small, //12
Medium, //18
Large, //24
XLarge, //36
XXLarge //47
}
private enum AlignOptions
{
Left,
Center,
Right
}
private enum ValueType
{
Text,
Barcode
}
And Resharper's inspection tells me about all of them that "Enum member 'XSmall' [etc.] is never used"
Yet I am using them in my combo boxes, like so:
comboBoxType1.DataSource = Enum.GetNames(typeof(ValueType));
...so why is Resharper fooled? Or is it?
FontSizeType.XSmall
(etc...) as you are databinding the whole enum. – Mandatory