阅读背景:

枚举类型的名称空间——最佳实践

来源:互联网 

Often, one needs several enumerated types together. Sometimes, one has a name clash. Two solutions to this come to mind: use a namespace, or use 'larger' enum element names. Still, the namespace solution has two possible implementations: a dummy class with nested enum, or a full blown namespace.Often, one needs several enumerated types toget




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: