I'm using System.Configuration.ConfigurationManager.AppSettings.["...."]
. However, I found that the newly added <add key="new1" value="...." />
always got null values when execute
System.Configuration.ConfigurationManager.AppSettings.["new1"]
(the order in app.config
file doesn't matter).
Visual studio debugger shows that System.Configuration.ConfigurationManager.AppSettings.AllKeys
has the type of string[8]
. Why it only get 8 items only?