Internal access modifier
<p>I have a 2 classes in a project like this:</p>

<pre><code>namespace ConsoleApplication1
{
    internal class ClassA
    {
         internal int dataMember;
    }
}
</code></pre>

<p>and</p>

<pre><code>namespace ConsoleApplication1
{
    class ClassB 
    {
        static void Main(string[] args)
        {
            ClassA c = new ClassA();
            Console.Write(c.dataMember); //Cannot access??
        }
    }
}
</code></pre>

<p>I have used internal access modifier for the class A and its data member</p>

<p>Though class A's object can be created within the main of class b, but why I am not able to access its data member with the internal access specifier within the same assembly?</p>

<p>Here's the error that it gives in VS 2010:</p>

<blockquote>
  <p>'ConsoleApplication1.ClassA.dataMember' is inaccessible due to its protection level</p>
</blockquote>
