I have two classes, I have to declare a variable common to both classes.
In the case of nested classes, I need to access the Outer class variable in the inner class
please give me the best way to do this in C #.
Code example
Class A
{
int a;
Class B
{
}
}
Thanks in advance
source
share