#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 ()