Namespace and class with the same name?

前端 未结 9 1722
终归单人心
终归单人心 2020-11-29 03:38

I\'m organizing a library project and I have a central manager class named Scenegraph and a whole bunch of other classes that live in the Scenegraph namespace.<

9条回答
  •  被撕碎了的回忆
    2020-11-29 04:33

    CA1724: Type Names Should Not Match Namespaces ...

    Basically, if you follow Code Analysis for proper coding this rule says to not do what you are trying to do. Code Analysis is very useful in helping you find potential issues.

提交回复
热议问题