how to implement inner outer classes in c#
i have two nested classes
like
class Outer { int TestVariable = 0; class Inner {
No, C# does not have the same semantics as Java in this case. You can either make TestVariable const, static, or pass an instance of Outer to the constructor of Inner as you already noted.
TestVariable
const
static
Outer
Inner