Naming of include/exclude enum
I'm having difficulties naming an enum that should have the values Include
and Exclude
. If the enumerations were In
and Out
, I'd name the enum Direction
, but what's the similar and appropriate word to group Include
and Exclude
?
The context and application of the enum is to set whether a selection of objects are to be included in or e开发者_运维知识库xcluded from a larger set.
How about "Inclusion"?
Filter
maybe? Or Condition
?
That would really depend on the context I guess, it hard to give a single name to such vague concepts.
Integration ? Integration(Rule|Policy) ? Yeah, not convincing I know.
That seems to be related to Sets and Subsets. I would say something like SetRelation. If you're talking about Set elements, then maybe you should use Element (BelongsTo|DoesNotBelongTo)
SelectionUsage or SelectionUsageType
T(Filter)Operation = (foInclude, foExclude)
精彩评论