Enumeration Type Naming

If you have a set of related words (e.g. Row and Column or On and Off), how do you find a collective word that describes these words? In particular, what do you call an enumeration?

If I have “Red,” “Green,” and “Blue,” a reasonable enumeration name might be “Color.” The values ​​"On" and "Off" can have a reasonable enumeration name "Power". But how can I name an enumeration that can have the meaning of "String" or "Column"?


Some good answers to "What do you call a row or column enumeration?" - Cartesian and IndexType.

How to find collective words in general - are there any resources there or you just need to know English well / know a lot of words?

+5
source share
9 answers

Try using a name that indicates what the enumeration is used for, e.g.

public enum CountMethod 
{
    Row,
    Column
}
+9
source

There is software called WordNet, which essentially classifies every English word in a complex class hierarchy and has built-in software for it that can take two words and return its early common superclass (hyper-name in the wordnet language).

In this case, a query for the word red will return something like

red, redness
   => chromatic color, chromatic colour, spectral color, spectral colour
       => color, colour, coloring, colouring
           => visual property
               => property
                   => attribute
                       => abstraction, abstract entity
                           => entity

The query for blue gives

blue, blueness
   => chromatic color, chromatic colour, spectral color, spectral colour
       => color, colour, coloring, colouring
           => visual property
               => property
                   => attribute
                       => abstraction, abstract entity
                           => entity

So, you know, the most accurate way to describe red or blue is "color color"

+6
source

(Row | Colum) "IndexType" - . , .

, , , , , . , , .

, ,

Table.IndexType or Grid.IndexType (etc.)
+3

, , - "".

public enum Cartesian
{
   Row, Column
}

, / ​​.

+2

, , . , , - ""? "All This Time...", .

- . , , , , , :

A-H

I-Z

, -, !

+2

, , . , Row, Column , . , HardwareStoreParts .. , shoes, graphs, elephants, blue, pluto, Martha Stewart, - . , , -, .

+1

, . ?

, , . , , API.

, , , :

widget.IndexMethod = IndexMethod.Row
widget.CountBy = CountMethod.Column

, Cartesian . , , - .

+1

:

public enum Mapping
{
   Row, Column
}
+1

, , . , - :

Table.ROW

- , :

SortMode.ROW
+1

All Articles