Oct 15, 2010 at 8:00 AM
Edited Oct 15, 2010 at 8:02 AM
If so, maybe you can tell me how can i resolve some of my problems?
What i have:
Class A; has a1, a2, ... properties
Class B:A; has b1,b2,... properties
Class Adata; has a1, a2,... properies
Class Bdata: has b1,b2,... properties
As you can see i have parallel ierarchy of classes and configs.
In type registration in Adata i am creating new instance of A and assign all its properties a1,a2,...
In type registration in Bdata i am creating new instance of B and assign all its properties a1,a2,...,b1,b2,...
I don't want to duplicate code with assigning properties a1,a2,...
How can i do this?
I have created some Dictionary, in which i am adding properties values. So in each configuration class i am only adding new properites values.
Then i create new instance of class using this dictionary. With reflection i set all this properties from dictionary.
All works fine, but only with properties, which values are not resolved. When i try to resolve i get null (you have explained why).
How can i do what i want?