I have a AppSetting in web.config.
<add key="key" value="\n|\r"/>
When i read it by ConfigurationManager.AppSettings["key"] it gives "\\n|\\r". Why ?
home / developersection / forums / configurationmanager.appsettings convert “\n” to “\\n” why?
I have a AppSetting in web.config.
<add key="key" value="\n|\r"/>
When i read it by ConfigurationManager.AppSettings["key"] it gives "\\n|\\r". Why ?
Sumit Kesarwani
22-Aug-2014ConfigurationManager.AppSettings["Key"].Replace("\\n", "\n")