title: .NET 3.5 DLL using its own config file
body: <p>I need to have a .NET 3.5 DLL have its own config file.  This DLL could be called from many different apps so the information (like connection strings) stored in the config file needed to be kept in a config file that the DLL can reference.  What I want is when the DLL is used, I need to "switch" the config file that is used to reference information to be the DLLs config file.  Then when the DLL is done with using the configuration information, the switch is made back to the default one.  The DLL is written using .NET 3.5.  I have been searching for how to do this and what I keep finding is how to merge information with an exe's app.config file.  In my case, I don't know how where this DLL will be used to modify any exe's app.config files out there.  This solution needs to be stand alone.  However, my base classes used to create the DLL (which contain business objects) are expecting to lookup the connection string and other information in a config file so that is why I need to "switch" to my DLL config file at the time when it is accessed and then switch it back so I don't mess up the exe app that called the DLL.</p>