Is there a way to get a System.Configuration.Configuration instance based on arbitrary xml?

前端 未结 3 1912
清酒与你
清酒与你 2020-12-06 05:42

I\'m trying to unit test a custom ConfigurationSection I\'ve written, and I\'d like to load some arbitrary configuration XML into a System.Configuration.Configuration for ea

3条回答
  •  时光取名叫无心
    2020-12-06 06:16

    Looking at the members of the class, I'd say the answer is probably no*. I'm not sure why you'd want to do this anyway, rather than create your own XML configuration file.

    *That's no, excluding messy reflection hacks

提交回复
热议问题