How to access variable of an Outer class in the inner class in c#
<p>i have two class i need to declare a variable common to both the classes..</p>

<p>In case of Nested classes i need to access the Outer class variable in the inner class</p>

<p>please give me a better way to do this in c#.</p>

<p>Sample code </p>

<pre><code> Class A
   {
     int a;
     Class B
        {
               // Need to access " a" here
        }
    }
</code></pre>

<p>Thanks in advance</p>
