Another option would be create a separate interface that you could use to retrieve the application settings
public interface IFooSettings
{
int MySettings{get;}
}
public class ApplicationSettings : IFooSettings
{
public string MySettings{get; private set;}
ApplicationSettings()
{
MySettings = ConfigurationManager.AppSettings["mySetting"];
}
}
The power of this would be if for some reason you wanted to start saving your configuration in the database the only thing you would need to do is derive a class from IFooSettings to use a database
public class SqlApplicationSettings : IFooSettings
{
SqlApplicationSettings()
{
//Do Something to populate the settings
}
public string MySettings{get; private set;}
}
Granted this might be a bit of overkill for your application but it would offer a lot of flexability since you would not be tied to the ConfigurationManager or some other source.