(apologies for C # terminology / examples ...)
No. You can limit:
- to current build (
internal) - to indicate other assemblies (
[InternalsVisibleTo]) - for subclasses (
protected)
(and some combinations like protected internal)
What about that. Nothing depends on the caller's namespace. In the end, I can just do this:
namespace Your.Namespace {
public static class MyEvilClass {
public static void DoEvil() {
YourPrivateClass.PushTheRedButton();
}
}
}
and I broke it ...