Odd situation... I need to create a new instance of a class that needs a member of the calling class. But i can't pass a reference to the calling class through the constructor.
The solution i am looking for is something like this:
Public Class ChildClass
Public Sub New(args)
_MyMember = GetMemberFromCallingClass()
...
...
End Sub
End Class
I want this to work without having to manually pass any references or variables from the calling class to the new instance of ChildClass.
Is this possible and if so, what should i look at to make this part of my code.