P
pigeonrandle
Hi,
Funnily enough, i have a question about passing data between classes.
There's an excellent diagram below to help drive away any confusion.
I have class A which contains an instance of class B and class E.
Class B contains an instance of class C.
What is the best way to move an object (class D) created in class C to
class E?!
A
{
...B
{
.....C
{
.......D (from inside class C)
}
}
...E
{
..... (to inside class E)
}
}
I am currently raising a chain of events in the classes with class D as
part of the EventArgs. This seems like a rather contrived method so any
adivice you have will be greatfully received.
Cheers,
James Randle.
Funnily enough, i have a question about passing data between classes.
There's an excellent diagram below to help drive away any confusion.
I have class A which contains an instance of class B and class E.
Class B contains an instance of class C.
What is the best way to move an object (class D) created in class C to
class E?!
A
{
...B
{
.....C
{
.......D (from inside class C)
}
}
...E
{
..... (to inside class E)
}
}
I am currently raising a chain of events in the classes with class D as
part of the EventArgs. This seems like a rather contrived method so any
adivice you have will be greatfully received.
Cheers,
James Randle.