36 lines
588 B
Plaintext
36 lines
588 B
Plaintext
![]() |
By convention, namespaces within a project should start with the project default namespace, and end with the file's position within the project. Anything else may confuse maintainers and callers.
|
||
|
|
||
|
|
||
|
== Noncompliant Code Example
|
||
|
|
||
|
----
|
||
|
// file path: Gui/Screen.cs
|
||
|
namespace Green // Noncompliant
|
||
|
{
|
||
|
class Screen
|
||
|
{
|
||
|
}
|
||
|
}
|
||
|
----
|
||
|
|
||
|
|
||
|
== Compliant Solution
|
||
|
|
||
|
----
|
||
|
// file path: Gui/Screen.cs
|
||
|
namespace Gui
|
||
|
{
|
||
|
class Screen
|
||
|
{
|
||
|
}
|
||
|
}
|
||
|
----
|
||
|
|
||
|
|
||
|
ifdef::env-github,rspecator-view[]
|
||
|
== Comments And Links
|
||
|
(visible only on this page)
|
||
|
|
||
|
include::comments-and-links.adoc[]
|
||
|
endif::env-github,rspecator-view[]
|