Reading a configuration section from a stream - possible?
I have the following problem:
I need 开发者_StackOverflow社区to get a ConfigurationSection - object from a stream that contains a well formed app.config - file (which will has to be loaded from the assembly resource streams).
Is there any way to load that from a stream?
Background (to satisfy the "why would you want that" questions):
I'm working on some kind of plugin - system based on Unity (and no - I CAN NOT use MEF, because MEF doesn't support Unity and it's all a pain).
My idea is to have a "extension manifest" - file as a resource in the plugin - assemblies which have the same format as an app.config file but are only there to setup the Unity - IoC.
This one is pretty old, but will surely helps:
http://www.eggheadcafe.com/articles/20060622.asp
精彩评论