Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

About Configuration File

0 views
Skip to first unread message

Yogesh parashar

unread,
May 26, 2005, 2:31:15 AM5/26/05
to
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


Ignacio Machin ( .NET/ C# MVP )

unread,
May 26, 2005, 3:11:02 PM5/26/05
to
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,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation


"Yogesh parashar" <x...@xxx.com> wrote in message
news:eI9$YzbYF...@TK2MSFTNGP12.phx.gbl...

0 new messages