how to implement inner outer classes in c#
i have two nested classes
like
class Outer { int TestVariable = 0; class Inner {
Short answer: No,
You will somehow need to inject the TestVariable into your Inner class. Making your testVariable could potentially lead to undesired behaviour. My sugestion would be to inject it via the constructor.