X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2FSystem.Configuration%2FSystem.Configuration%2FConnectionStringsSection.cs;h=a891dd9ea6308af1542308c4eb7f0b4d26db32fc;hb=e497bb1b59c80256eac3c3e2f0608b1400098e0a;hp=b34f975ce4069915f8ae9de132594b3776804d71;hpb=0649b90c407fc29ee8377f2c6fb42ae2c006e26a;p=mono.git diff --git a/mcs/class/System.Configuration/System.Configuration/ConnectionStringsSection.cs b/mcs/class/System.Configuration/System.Configuration/ConnectionStringsSection.cs index b34f975ce40..a891dd9ea63 100644 --- a/mcs/class/System.Configuration/System.Configuration/ConnectionStringsSection.cs +++ b/mcs/class/System.Configuration/System.Configuration/ConnectionStringsSection.cs @@ -31,49 +31,39 @@ #if NET_2_0 -#region Using directives using System; -#endregion +using System.Xml; namespace System.Configuration { public sealed class ConnectionStringsSection : ConfigurationSection { - - #region Fields private static readonly ConfigurationProperty _propConnectionStrings; private static ConfigurationPropertyCollection _properties; - #endregion // Fields - #region Constructors static ConnectionStringsSection () { - _propConnectionStrings = new ConfigurationProperty (null, typeof (ConnectionStringSettingsCollection), - null, ConfigurationPropertyOptions.DefaultCollection); + _propConnectionStrings = new ConfigurationProperty ("", typeof (ConnectionStringSettingsCollection), + null, ConfigurationPropertyOptions.IsDefaultCollection); _properties = new ConfigurationPropertyCollection (); _properties.Add (_propConnectionStrings); } - public ConnectionStringsSection () : base () + + public ConnectionStringsSection () { } - #endregion // Constructors - #region Properties + + [ConfigurationProperty ("", Options = ConfigurationPropertyOptions.IsDefaultCollection)] public ConnectionStringSettingsCollection ConnectionStrings { - get - { - return (ConnectionStringSettingsCollection) base [_propConnectionStrings]; - } + get { return (ConnectionStringSettingsCollection) base [_propConnectionStrings]; } } + protected internal override ConfigurationPropertyCollection Properties { - get - { - return _properties; - } + get { return _properties; } } - #endregion // Properties protected internal override object GetRuntimeObject ()