Little embarrassed to ask, but since I never had to do it, here it goes. I have a config file that has connection strings for the app stored in this format.
<connectionStrings>
<clear />
<add name="MyConnectionStringName" connectionString="{here is a connection string}"/>
</connectionStrings>
I tried ConfigurationManager but it requires that the file has "configuration" root element. Is there something else in Configuration name space, or should I just use LinqToXml?
Update: I cannot change anything in the file, file is already in the use for years by some in home grown framework. All content that is in the file is shown above.
Update2: Second look reveals that this file is referenced from App.Config as
<connectionStrings configSource="Config\connectionstrings.config"/>
which allows me to use ConfigurationManager.ConnectionStrings.