开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜