Consider the case of a base assembly of basetype enumtype
public enum ItemState = { red, green, blue };
I use this base assembly in other assemblies Project_1, Project_2etc.
Each of them performs some specific actions and requires specific project conditions, such as {grey, black, white, ...}in Project_1and {brown, transparent, ...}in Project_2.
Project_1not allowed to use (and, if possible, even see) {brown, transparent, ...}. Similarly, Project_2cannot use {grey, black, white, ...}.
I know that "partial enumeration" does not exist - so what is the proposed design pattern for such a task?
source
share