c# - What does the ConfigurationManager use to load *.config files? -
after asking why xmlreader refusing recognize é
html entity (and subsequent to-the-point jon skeet answer), realized .net configurationmanager able load "invalid" configuration files; following app.config file invalid xmlreader
can accessed configurationmanager.appsettings["invalid"]
<?xml version="1.0"?> <configuration> <appsettings> <add key="invalid" value="this invalid é "/> <add key="valid" value="this valid <"/> </appsettings> </configuration>
an interesting point if app.config contains é
entity visual studio underlines , warns invalid.
i tried peeking under curtain configurationmanager
ilspy couldn't handle on going; cannot xmlreader
(or if there non-trivial xml setup before file loaded) what's deal class? configurationmanager use load *.config files?
Comments
Post a Comment