I've got two classes.
public class Class1 {
public string value {get;set;}
}
public class Class2 {
public Class1 myClass1Object {get;set;}
}
I've got an object of type Class2. I need to use reflection on Class2 to set the value property... i.e, if I were doing it without reflection, this is how I would go about it:
Class2 myObject = new Class2();
myObject.myClass1Object.value = "some value";
Is there a way to do the above, while using reflection to access the property "myClass1Object.value" ?
Thanks in advance.