how to implement inner outer classes in c#
i have two nested classes
like
class Outer
{
int TestVariable = 0;
class Inner
{
int InnerTestVariable = TestVariable // Need to access the variable "TestVariable" here
}
}
Its showing error while compiling.
It can be solved by
1) Making TestVariable as static
2) Passing an instance of Outer class to Inner class
but in java there is no need to create Instance or static .
can i use the same functionality in C# too ?