cannot declare instance members in a static class in C#
        Posted  
        
            by acadia
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by acadia
        
        
        
        Published on 2010-06-17T16:13:15Z
        Indexed on 
            2010/06/17
            16:23 UTC
        
        
        Read the original article
        Hit count: 613
        
c#
Hello,
I have a Public Static Class and I am trying to access appsettings from my app.config file in C# and I get the above error
public static class employee
{
NameValueCollection appSetting = ConfigurationManager.AppSettings;    
}
How do I get this to work? PS: I pasted just a few lines of code.
thanks
© Stack Overflow or respective owner