i have two nested classes
like
Expand|Select|Wrap|Line Numbers
- class Outer
- {
- int TestVariable = 0;
- class Inner
- {
- int InnerTestVariable = TestVariable // Need to access the variable "TestVariable" here
- }
- }
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 ?