If the entry in the web.config file is an invalid value, I should throw an exception or set its default value when I read it from my application.
For example:
<add key="enablePasswordReset" value="Invalid">
If my application reads this and wants to save it in the Boolean property, should I throw an exception or set its default value to "true"?
user196322
source
share