cannot declare instance members in a static class in C#
- by acadia
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