About Configuration File

  • Thread starter Thread starter Yogesh parashar
  • Start date Start date
Y

Yogesh parashar

is there any way out we can have more than one config files with C# or
atleast can we have config file with class
library ?
Thanx in advance

Yogesh
 
Hi,

No, you can't and unfortunally ConfigurationSettings is sealed, so you will
have to implement yours, Which should not be so difficult as long as your
config file is a XML, you could create an Index property just like
ConfigurationSettings 's AppSettings and then look it up in the XML file (
file which you read and kept stored in memory ). You could pass to the
constructor the path of the file you want to use.


cheers,
 
Back
Top