Author: kostat
Date: 2007-01-04 07:10:20 -0500 (Thu, 04 Jan 2007)
New Revision: 70463
Modified:
trunk/mcs/class/System.Web/System.Web.Configuration_2.0/ChangeLog
trunk/mcs/class/System.Web/System.Web.Configuration_2.0/ProfileSection.cs
Log:
Ensure enabled = true by default; cleanup
Modified: trunk/mcs/class/System.Web/System.Web.Configuration_2.0/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web.Configuration_2.0/ChangeLog
2007-01-04 11:54:47 UTC (rev 70462)
+++ trunk/mcs/class/System.Web/System.Web.Configuration_2.0/ChangeLog
2007-01-04 12:10:20 UTC (rev 70463)
@@ -1,3 +1,7 @@
+2007-01-04 Konstantin Triger <[EMAIL PROTECTED]>
+
+ * ProfileSection.cs: Ensure enabled = true by default; cleanup.
+
2006-12-27 Vladimir Krasnov <[EMAIL PROTECTED]>
* CustomErrorCollection.cs: fixed ThrowOnDuplicate to false as in .net
Modified:
trunk/mcs/class/System.Web/System.Web.Configuration_2.0/ProfileSection.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web.Configuration_2.0/ProfileSection.cs
2007-01-04 11:54:47 UTC (rev 70462)
+++ trunk/mcs/class/System.Web/System.Web.Configuration_2.0/ProfileSection.cs
2007-01-04 12:10:20 UTC (rev 70463)
@@ -37,81 +37,44 @@
{
public sealed class ProfileSection: ConfigurationSection
{
- static ConfigurationPropertyCollection properties;
- static ConfigurationProperty autoSaveEnabledProp;
- static ConfigurationProperty defaultProviderProp;
- static ConfigurationProperty enabledProp;
- static ConfigurationProperty inheritsProp;
- static ConfigurationProperty propertySettingsProp;
- static ConfigurationProperty providersProp;
-
- static ProfileSection ()
- {
- autoSaveEnabledProp = new ConfigurationProperty
("automaticSaveEnabled", typeof (bool), true);
- defaultProviderProp = new ConfigurationProperty
("defaultProvider", typeof (string), "AspNetSqlProfileProvider");
- inheritsProp = new ConfigurationProperty ("inherits",
typeof (string), "");
- propertySettingsProp = new ConfigurationProperty
("properties", typeof (RootProfilePropertySettingsCollection), null);
- providersProp = new ConfigurationProperty ("providers",
typeof (ProviderSettingsCollection), null);
- enabledProp = new ConfigurationProperty ("enabled",
typeof (bool), false);
-
- properties = new ConfigurationPropertyCollection ();
- properties.Add (autoSaveEnabledProp);
- properties.Add (defaultProviderProp);
- 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; }
+ public bool AutomaticSaveEnabled {
+ get { return (bool) base ["automaticSaveEnabled"]; }
+ set { base ["automaticSaveEnabled"] = value; }
}
[ConfigurationProperty ("defaultProvider", DefaultValue =
"AspNetSqlProfileProvider")]
[StringValidator (MinLength = 1)]
- public string DefaultProvider {
- get { return (string) base [defaultProviderProp]; }
- set { base [defaultProviderProp] = value; }
+ public string DefaultProvider {
+ get { return (string) base ["defaultProvider"]; }
+ set { base ["defaultProvider"] = value; }
}
[ConfigurationProperty ("enabled", DefaultValue = true)]
- public bool Enabled {
- get { return (bool) base [enabledProp]; }
- set { base [enabledProp] = value; }
+ public bool Enabled {
+ get { return (bool) base ["enabled"]; }
+ set { base ["enabled"] = value; }
}
[ConfigurationProperty ("inherits", DefaultValue = "")]
- public string Inherits {
- get { return (string) base [inheritsProp]; }
- set { base [inheritsProp] = value; }
+ public string Inherits {
+ get { return (string) base ["inherits"]; }
+ set { base ["inherits"] = value; }
}
[ConfigurationProperty ("properties")]
public RootProfilePropertySettingsCollection PropertySettings {
- get {
- return (RootProfilePropertySettingsCollection)
base[propertySettingsProp];
+ get {
+ return (RootProfilePropertySettingsCollection)
base ["properties"];
}
}
[ConfigurationProperty ("providers")]
public ProviderSettingsCollection Providers {
- get {
- return (ProviderSettingsCollection)
base[providersProp];
+ get {
+ return (ProviderSettingsCollection) base
["providers"];
}
}
-
- protected override ConfigurationPropertyCollection Properties {
- get {
- return properties;
- }
- }
-
}
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches