New tests.
[mono.git] / mcs / class / System.Web / System.Web.Configuration_2.0 / ProfileSection.cs
index 1e47d5e4b31fd3b6c58134c3fec8f0477e0c3073..ef4597b69503cc47550970fb7d363bb178a07059 100644 (file)
@@ -37,40 +37,38 @@ namespace System.Web.Configuration
 {
        public sealed class ProfileSection: ConfigurationSection
        {
-               static ConfigurationPropertyCollection properties;
-               static ConfigurationProperty autoSaveEnabledProp;
+               static ConfigurationProperty automaticSaveEnabledProp;
                static ConfigurationProperty defaultProviderProp;
                static ConfigurationProperty enabledProp;
                static ConfigurationProperty inheritsProp;
                static ConfigurationProperty propertySettingsProp;
                static ConfigurationProperty providersProp;
 
+               static ConfigurationPropertyCollection properties;
+               
                static ProfileSection ()
                {
-                       autoSaveEnabledProp = new ConfigurationProperty ("automaticSaveEnabled", typeof (bool), true);
-                       defaultProviderProp = new ConfigurationProperty ("defaultProvider", typeof (string), "AspNetSqlProfileProvider");
-                       inheritsProp = new ConfigurationProperty ("inheritsProps", typeof (string), "");
-                       propertySettingsProp = new ConfigurationProperty ("properties", typeof (RootProfilePropertySettingsCollection), null);
-                       providersProp = new ConfigurationProperty ("providers", typeof (ProviderSettingsCollection), null);
-                       enabledProp = new ConfigurationProperty ("enabled", typeof (bool), false);
+                       automaticSaveEnabledProp = new ConfigurationProperty ("automaticSaveEnabled", typeof (bool), true);
+                       defaultProviderProp = new ConfigurationProperty ("defaultProvider", typeof (string),
+                                                                        "AspNetSqlProfileProvider");
+                       enabledProp = new ConfigurationProperty ("enabled", typeof (bool), true);
+                       inheritsProp = new ConfigurationProperty ("inherits", typeof (string), "");
+                       propertySettingsProp = new ConfigurationProperty ("properties", typeof (RootProfilePropertySettingsCollection));
+                       providersProp = new ConfigurationProperty ("providers", typeof (ProviderSettingsCollection));
 
                        properties = new ConfigurationPropertyCollection ();
-                       properties.Add (autoSaveEnabledProp);
+                       properties.Add (automaticSaveEnabledProp);
                        properties.Add (defaultProviderProp);
+                       properties.Add (enabledProp);
                        properties.Add (inheritsProp);
                        properties.Add (propertySettingsProp);
                        properties.Add (providersProp);
-                       properties.Add (enabledProp);
                }
-
-               public ProfileSection ()
-               {
-               }
-
+               
                [ConfigurationProperty ("automaticSaveEnabled", DefaultValue = true)]
                public bool AutomaticSaveEnabled {
-                       get { return (bool) base [autoSaveEnabledProp]; }
-                       set { base [autoSaveEnabledProp] = value; }
+                       get { return (bool) base [automaticSaveEnabledProp]; }
+                       set { base [automaticSaveEnabledProp] = value; }
                }
 
                [ConfigurationProperty ("defaultProvider", DefaultValue = "AspNetSqlProfileProvider")]
@@ -95,23 +93,20 @@ namespace System.Web.Configuration
                [ConfigurationProperty ("properties")]
                public RootProfilePropertySettingsCollection PropertySettings {
                        get {
-                               return (RootProfilePropertySettingsCollection) base[propertySettingsProp];
+                               return (RootProfilePropertySettingsCollection) base [propertySettingsProp];
                        }
                }
 
                [ConfigurationProperty ("providers")]
                public ProviderSettingsCollection Providers {
                        get {
-                               return (ProviderSettingsCollection) base[providersProp];
+                               return (ProviderSettingsCollection) base [providersProp];
                        }
                }
 
                protected override ConfigurationPropertyCollection Properties {
-                       get {
-                               return properties;
-                       }
+                       get { return properties; }
                }
-
        }
 }