I\'m trying to understand the internal access modifier in C#. I can\'t seem to understand what an assembly is exactly, and what part of my program is held inside that assemb
Basically, you cannot make a variable visible only from within a given namespace. As anybody can define any namespace, this would make the idea of internal void: you would just have to write
namespace System
{
public static MySystemInternalSpy
{
public static void SpyInternals()
{
...
}
}
}
to gain access to any variable, class or method defined as internal in the System namespace, for instance.