How to deal with almost the same enums?

growlley

New Member
I need to define enums in several classes to represent available actions for each class. . Now I wonder what is the best way to deal with this?1) Create separate enums\[code\]public enum Foo {Insert, Update, Delete , Select };public enum Bar {Insert, Select };\[/code\]2) or use a general \[code\]enum\[/code\] for all of them\[code\]public enum FooBar {Insert, Update, Delete , Select};\[/code\]
 
Back
Top