I am trying to use App keys as below :
<add key="APPLE" value="TESTER"/>
<add key="apple" value="TESTER"/>
<add key="ORANGE" value="DEVELOPER"/>
Now the Problem is that when I am using AllKeys as:
WebConfigurationManager.AppSettings.AllKeys.Contains(Fruits)
AllKeys just contains key for APPLE and ORANGE and nothing comes for “apple”.
Is it because, both “apple” and “APPLE” has same value as “TESTER “
or else Allkeys conflicts between keys for “APPLE” and “apple”
Any pointers ??
AppSettings is a
NameValueCollectionwho’s default comparer is theCaseInsensitiveComparer