I am trying to use the values specified by an App.config file in a C# program in Visual Studio 2010, based on the directions specified in the "accepted answer" to this post: Custom app.config Config Section Handler
My code file is using System.Configuration
, and I'm trying to create the following:
public class ConnectionCollection : ConfigurationElementCollection {
//code here
}
public class ConnectionElement : ObjectConfigurationElement {
//code here
}
However, the error messages say that ConfigurationElementCollection, ObjectConfigurationElement and ConfigurationElement can't be found. What am I doing wrong?