* ConfigurationSettings.cs: don't ask me why, but the .cctor
initialization of 'instance' field does no longer work.
svn path=/trunk/mcs/; revision=27539
* ConfigXmlDocument.cs: removed method that was supposed to be internal.
* ConfigurationSettings.cs: instead of calling the overload that doesn't
exist in MS, use what we have when loading an external file.
svn path=/trunk/mcs/; revision=26793
* ConfigXmlDocument.cs: fixed overloaded Load and added a new one that
sets the file name.
* ConfigurationSettings.cs: use the new Load in ConfigXmlDocument when
loading sections.
* NameValueFileSectionHandler.cs: don't fails if the path for the 'file'
attribute doesn't have a directory.
Closes bug #57244.
svn path=/trunk/mcs/; revision=25728
* ConfigurationSettings.cs: initialize config in
ChangeConfigurationSettings if it has not been done yet. Patch by
George Kodinov [email protected]). Fixes bug #51643.
svn path=/trunk/mcs/; revision=20744
* ConfigurationSettings.cs: handle allowdefinition and allowlocation,
added locks, don't reopen the file for every new section to be read,
but keep them as strings and build the section handlers with that.
svn path=/trunk/mcs/; revision=20678
* ConfigurationSettings.cs: make the *Mark objects static
because they need to be comparable across instances.
(ReadSectionGroup): You can add an element to a group declared
in the parent config files (MS.net's QuickStarts do this).
svn path=/trunk/mcs/; revision=20145
* ConfigurationSettings.cs: patch by Eric Lindvall ([email protected])
that improves performance by not reading the file more than once.
svn path=/trunk/mcs/; revision=18534
* ConfigurationSettings.cs: patch by Eric Lindvall ([email protected])
that improves performance by not reading the file more than once.
svn path=/trunk/mcs/; revision=18462
* ConfigXmlDocument.cs: don't jump over the first element.
* ConfigurationSettings.cs: pass doc.DocumentElement instead of doc.
This used to work until i tried to access one attribute of the first
element and realized that the element was not the expected!
This change does not affect the configuration handlers that only use
ChildNodes property on the XmlNode they get as argument.
svn path=/trunk/mcs/; revision=9760
remove a configuration setting, you'd get an exception saying that there was
no factory for it (i.e. it had already been removed).
svn path=/trunk/mcs/; revision=9664
* ConfigurationSettings.cs (DefaultConfig.GetAppConfigPath):
Append ".config" to the filename, not ".exe.config" since the
filename already has a ".exe" suffix.
svn path=/trunk/mcs/; revision=8239
* ConfigurationSettings.cs (DefaultConfig.GetAppConfigPath): Use
Assembly.Location, not Assembly.FullName to get its filename.
svn path=/trunk/mcs/; revision=8238
* ConfigHelper.cs: workaround for a bug in NameValueCollection.
* ConfigurationSettings.cs: load sections when the parent holds a
handler for it. Now overriding appSettings values in the app config
file works (first <remove..> and then <add...).
svn path=/trunk/mcs/; revision=8126
* NameValueFileSectionHandler.cs: For now if a section is not
present, return null. Do not know what the real fix is. Gonzalo
will have to look at this, but the debugger was crashing as
appSettings in the machine.config does not exist, but GetConfig
returns a non-null value when looking it up when you do a
GetDocumentForSection ("appSettings").
svn path=/trunk/mcs/; revision=8115
* ConfigXmlDocument.cs: move the reader for the section to the first
element.
* ConfigurationSettings.cs: fixed hierarchical search for a handler.
svn path=/trunk/mcs/; revision=8052
* list.unix: added new files in System.Configuration.
* System.Configuration/ConfigHelper.cs: New file. Contains some
helper functions for getting key-value collections from the config file.
* System.Configuration/ConfigXmlDocument.cs: wrapper around xml
elements to provide line number and file name info.
* System.Configuration/IConfigXmlNode.cs: used in ConfigXmlDocument
and ConfigurationException.
* System.Configuration/ConfigurationException.cs: get file name and line
number from the wrapped XmlNode. Display this info in Message.
* System.Configuration/NameValueFileSectionHandler.cs: new handler.
* System.Configuration/DictionarySectionHandler.cs:
* System.Configuration/NameValueSectionHandler.cs: modified to use the
helper methods in ConfigHelper.
svn path=/trunk/mcs/; revision=7953
* ConfigurationSettings.cs (ConfigurationSettings.GetConfig): Use the
correct configuration filename, fixed the TODO.
(GetSectionHanderType): Renamed to GetSectionHandlerType.
* NameValueSectionHandler.cs (NameValueSectionHandler.Create): Allow
whitespaces in the configuration file.
svn path=/trunk/mcs/; revision=7199