T
Tilted
Hi
I have the following scenario...
public class aclass
{
private bclass mbclass
public aclass()
{
bclass = new bclass();
}
}
.... there is more but I cut out the interesting bits. My question is
whether or not by reflection I can in someway modify the value of (for
instance) bclass.customername whilst reflecting on an object of type aclass.
I would prefer to do it as though I was sat in aclass i.e.
bclass.customername = "foo" sort of thing . The code I use at the moment
assumes all fields are within the reflected object (aclass), so if somehow I
could make bclass.customername accessable through the aclass reflection I
would be most happy.
Thanks in advance
Chris.
I have the following scenario...
public class aclass
{
private bclass mbclass
public aclass()
{
bclass = new bclass();
}
}
.... there is more but I cut out the interesting bits. My question is
whether or not by reflection I can in someway modify the value of (for
instance) bclass.customername whilst reflecting on an object of type aclass.
I would prefer to do it as though I was sat in aclass i.e.
bclass.customername = "foo" sort of thing . The code I use at the moment
assumes all fields are within the reflected object (aclass), so if somehow I
could make bclass.customername accessable through the aclass reflection I
would be most happy.
Thanks in advance
Chris.