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 &eacute; "/>     <add key="valid" value="this valid &lt;"/>   </appsettings> </configuration> 

an interesting point if app.config contains &eacute; 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

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -