Hi,
This is a strange question. Firstly, I'm working with custom classes,
nothing available in .net and I _don't_ want to add a parent property.
Here is the problem.
Lets say I have two classes.
public class1
{
public class2 Class2Instance = new class2();
}
public class2
{
public void somemethod()
{
****LOGIC HERE****
}
}
When an instance of class1 is created, it creates an instance of class2
inside it. How can class2 get a reference to its parent? Without having to
define a parent property? The code that goes in LOGIC HERE needs to talk to
the holding class ....
thanks!
C