2010-07-06 Gonzalo Paniagua Javier <gonzalo@novell.com>
[mono.git] / mcs / class / System.Configuration / System.Configuration / ConnectionStringsSection.cs
index b34f975ce4069915f8ae9de132594b3776804d71..a891dd9ea6308af1542308c4eb7f0b4d26db32fc 100644 (file)
 
 #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 ()