Hi,
I assume that a ClassLibrary.DLL can have a app.config file, but during
runtime, it run within the context of another main application that has
its own app.config file (am I correct?)
Wrong, they do not.
I have a similar situation, I have a DLL that is a command for ArcGIS and
need to store some config values, even more, this values should be
particular to each users.
I create a folder under ApplicationData using :
System.Environment.GetFolderPath(Environment.Speci alFolder.ApplicationData);
There I store my config file.
For the config you have several options, if you prefer something like the
"regular" config, you could use a Hashtable and serialize it, then you can
use it like Config["Key"] = value;
Or as I did, I only have 5 values, so I used instead a text file in the form
key=value , I open, read and parse it and I make available those variables
as static properties.
I don't need to save them back, so it's even easier.
cheers,
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation