castle windsor container not wiring properties correctly

Posted by Damian on Stack Overflow See other posts from Stack Overflow or by Damian
Published on 2010-04-20T15:21:46Z Indexed on 2010/04/20 15:23 UTC
Read the original article Hit count: 185

I have a class that i want to instantiate thru castle in configuration.

public class MyMappings : IMappings { Mapping FirstMapping { get; set; } Mapping SecondMapping { get; set; } OtherType ThirdMapping { get; set; } OtherType FourthMapping { get; set; } Mapping FifthMapping { get; set; } OtherType SixMapping { get; set; } }

In my configuration i have the following: ${anothercomponentIDForCompomentOftypeMapping}

The problem i am facing is that is assigning the same value to all properties of the same type, completly ignoring the name of the parameter. This properties are optional, i just want to initialize the value for one of them.

Thanks,

© Stack Overflow or respective owner

Related posts about castle-windsor

Related posts about c#