I have the following code. I want to get hold of the outer class object using which I created the inner class object inner. How can I do it?
inner
pub
if you don't have control to modify the inner class, the refection may help you (but not recommend). this$0 is reference in Inner class which tells which instance of Outer class was used to create current instance of Inner class.