If you have a set of related words (e.g. Row & Column or On & Off), how do you find the collective word that describes those words? Specifically, how do you name an enum?
If I have "Red", "Green" and "Blue", a sensible enum name might be "Color". Values of "On" and "Off" might have a sensible enum name of "Power". But how do I name the enum that can have a value of "Row" or "Column"?
Couple of good answers to "What do you name a Row or Column enum?" - Cartesian and IndexType.
What about finding collective words in general - are there any resources out there or do you just have to be good at English / know lots of words?
Try using a name which indicates what the enum is used for, e.g
public enum CountMethod
{
Row,
Column
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With