A procedure loops thru class' properties (via reflection) and sets them to values contained in a app.config file like this
foreach
{
if
value =
}
However in two cases we've seen behaviour we can't explain. For example when property.name = "ValidState" ConfigurationManager.AppSettings[property.name] is NULL. But when I substitue property.name for "ValidState" then it works as expected. Another words:
(when property.name="ValidState")
ConfigurationManager.AppSettings[property.name] doesn't work but ConfigurationManager.AppSettings["ValidState"] works.
What could be the problem?