开发者

castle windsor: array of complex types from config

开发者 https://www.devze.com 2023-03-25 02:56 出处:网络
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 defi

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号