castle windsor: array of complex types from config
I have a requirement to initialize a list of complex types from config.
Ideally I'd have in windsor.config a list开发者_开发问答 of object definitions with all of the values for the properties defined, and have windsor initialize a new List with the objects and their values set.
How can i do this?
I think you will need to use a TypeConverter. The old-style documentation describes using a TypeConverter to allow a complex object to be described in Xml. The doc is here.
精彩评论