Skip to content

Gendarme.Rules.Design.InternalNamespacesShouldNotExposeTypesRule(2.10)

Sebastien Pouliot edited this page Jan 22, 2011 · 2 revisions

InternalNamespacesShouldNotExposeTypesRule

Assembly: Gendarme.Rules.Design
Version: 2.10

Description

This rule checks for externally visible types that reside inside internal namespaces, i.e. namespaces ending with Internal or Impl.

Examples

Bad example:

namespace MyStuff.Internal {
    public class Helper {
    }
}

Good example (internal type):

namespace MyStuff.Internal {
    internal class Helper {
    }
}

Good example (non-internal namespace):

namespace MyStuff {
    public class Helper {
    }
}
Clone this wiki locally