suppose we have:
Class Outer
Public Shared Index As Integer
Class Inner
Private Index As Integer
Public Shared Sub Test()
' how do I refer to the parent's Index?
End Sub
End Class
End Class
then I can't use MyBase
because it's not derived and I can't pass the instance of the parent to Inner's constructor because Test is shared... I also cannot refer to it as Outer.Index
because Outer doesn't yet exist at the time Inner is getting compiled, and of course, in a simple reference the referenced field would be that defined in Inner... so how do I do it?