I have the following listings:
private enum FontSizeType
{
XSmall,
Small,
Medium,
Large,
XLarge,
XXLarge
}
private enum AlignOptions
{
Left,
Center,
Right
}
private enum ValueType
{
Text,
Barcode
}
And the Resharper check tells me about all of them that "Enum member" XSmall "[etc.] is never used"
But I use them in my lists, for example:
comboBoxType1.DataSource = Enum.GetNames(typeof(ValueType));
... so why did Resharper cheat? Or that?
source
share