i have two class i need to declare a variable common to both the classes..
In case of Nested classes i need to access the Outer class variable in the inner class
please give me a better way to do this in c#.
Sample code
Class A
{
int a;
Class B
{
// Need to access " a" here
}
}
Thanks in advance