Getting list of key values from app config with same name
        Posted  
        
            by 
                NoviceMe
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by NoviceMe
        
        
        
        Published on 2012-09-04T21:28:14Z
        Indexed on 
            2012/09/04
            21:38 UTC
        
        
        Read the original article
        Hit count: 208
        
c#-4.0
I have follwing in app.config file:
<appSettings>
<add key="Name" value="Office"/>
... 
<add key="Name" value="HotSpot"/>
...
<add key="Name" value="Home"/>
</appSettings>
I tried
ConfigurationManager.AppSettings["Name"]
But it only gives me one Value? How can i get list of all values? I am using c# 3.5. Is there lambda expression or something i can use to get that?
© Stack Overflow or respective owner