浏览代码

2005-11-25 Chris Toshok <[email protected]>

	* AuthorizationRuleCollection.cs (CreateNewElement): remove
	MonoTODO.

	* CompilationSection.cs (GetRuntimeObject): add comment to TODO.

	* ProfileGroupSettings.cs: reformat some things.

	* FormsAuthenticationUser.cs (Name): remove MonoTODO.

	* WebPartsSection.cs (GetRuntimeObject): change TODO comment.

	* ProfilePropertySettings.cs: add internal argument-less ctor.

	* IdentitySection.cs (GetRuntimeObject): return this.

	* ProfilePropertySettingsCollection.cs: implement much of the
	TODO's.
	
	* WebControlsSection.cs (GetRuntimeObject): implement.

	* SqlCacheDependencyDatabaseCollection.cs (GetElementKey):
	implement.
	(GetKey): implement.


svn path=/trunk/mcs/; revision=53501
Chris Toshok 20 年之前
父节点
当前提交
8d096aa6fd

+ 0 - 1
mcs/class/System.Web/System.Web.Configuration_2.0/AuthorizationRuleCollection.cs

@@ -60,7 +60,6 @@ namespace System.Web.Configuration {
 			return new AuthorizationRule (elementName == "allow" ? AuthorizationRuleAction.Allow : AuthorizationRuleAction.Deny);
 		}
 
-		[MonoTODO]
 		protected override ConfigurationElement CreateNewElement ()
 		{
 			return new AuthorizationRule (AuthorizationRuleAction.Allow);

+ 26 - 0
mcs/class/System.Web/System.Web.Configuration_2.0/ChangeLog

@@ -1,3 +1,29 @@
+2005-11-25  Chris Toshok  <[email protected]>
+
+	* AuthorizationRuleCollection.cs (CreateNewElement): remove
+	MonoTODO.
+
+	* CompilationSection.cs (GetRuntimeObject): add comment to TODO.
+
+	* ProfileGroupSettings.cs: reformat some things.
+
+	* FormsAuthenticationUser.cs (Name): remove MonoTODO.
+
+	* WebPartsSection.cs (GetRuntimeObject): change TODO comment.
+
+	* ProfilePropertySettings.cs: add internal argument-less ctor.
+
+	* IdentitySection.cs (GetRuntimeObject): return this.
+
+	* ProfilePropertySettingsCollection.cs: implement much of the
+	TODO's.
+	
+	* WebControlsSection.cs (GetRuntimeObject): implement.
+
+	* SqlCacheDependencyDatabaseCollection.cs (GetElementKey):
+	implement.
+	(GetKey): implement.
+
 2005-11-24  Chris Toshok  <[email protected]>
 
 	* AssemblyInfo.cs: move this here from System.Web.Configuration,

+ 1 - 1
mcs/class/System.Web/System.Web.Configuration_2.0/CompilationSection.cs

@@ -119,7 +119,7 @@ namespace System.Web.Configuration
 			base.PostDeserialize ();
 		}
 
-		[MonoTODO]
+		[MonoTODO ("why override this?")]
 		protected override object GetRuntimeObject ()
 		{
 			return this;

+ 0 - 1
mcs/class/System.Web/System.Web.Configuration_2.0/FormsAuthenticationUser.cs

@@ -60,7 +60,6 @@ namespace System.Web.Configuration
 			this.Password = password;
 		}
 
-		[MonoTODO ("enable type converter")]
 		[StringValidator]
 		[TypeConverter (typeof (LowerCaseStringConverter))]
 		[ConfigurationProperty ("name", DefaultValue = "", Options = ConfigurationPropertyOptions.IsRequired | ConfigurationPropertyOptions.IsKey)]

+ 2 - 2
mcs/class/System.Web/System.Web.Configuration_2.0/IdentitySection.cs

@@ -54,10 +54,10 @@ namespace System.Web.Configuration {
 			properties.Add (userNameProp);
 		}
 
-		[MonoTODO]
+		[MonoTODO ("why override this?")]
 		protected override object GetRuntimeObject ()
 		{
-			throw new NotImplementedException ();
+			return this;
 		}
 
 		[MonoTODO]

+ 4 - 12
mcs/class/System.Web/System.Web.Configuration_2.0/ProfileGroupSettings.cs

@@ -78,25 +78,17 @@ namespace System.Web.Configuration
 
 		[ConfigurationProperty ("name", Options = ConfigurationPropertyOptions.IsRequired | ConfigurationPropertyOptions.IsKey)]
 		public string Name {
-			get {
-				return (string)base [nameProp];
-			}
-			internal set{
-				base [nameProp] = value;
-			}
+			get { return (string)base [nameProp]; }
+			internal set{ base [nameProp] = value; }
 		}
 
 		[ConfigurationProperty ("", Options = ConfigurationPropertyOptions.IsDefaultCollection)]
 		public ProfilePropertySettingsCollection PropertySettings {
-			get {
-				return (ProfilePropertySettingsCollection) base [propertySettingsProp];
-			}
+			get { return (ProfilePropertySettingsCollection) base [propertySettingsProp]; }
 		}
 
 		protected override ConfigurationPropertyCollection Properties {
-			get {
-				return properties;
-			}
+			get { return properties; }
 		}
 	}
 }

+ 4 - 0
mcs/class/System.Web/System.Web.Configuration_2.0/ProfilePropertySettings.cs

@@ -77,6 +77,10 @@ namespace System.Web.Configuration
 			properties.Add (typeProp);
 		}
 
+		internal ProfilePropertySettings ()
+		{
+		}
+
 		public ProfilePropertySettings (string name)
 		{
 			this.Name = name;

+ 17 - 28
mcs/class/System.Web/System.Web.Configuration_2.0/ProfilePropertySettingsCollection.cs

@@ -50,46 +50,43 @@ namespace System.Web.Configuration
 		{
 		}
 
-		[MonoTODO]
 		public void Add (ProfilePropertySettings propertySettings)
 		{
-			throw new NotImplementedException ();
+			BaseAdd (propertySettings);
 		}
 
-		[MonoTODO]
 		public void Clear ()
 		{
-			throw new NotImplementedException ();
+			BaseClear ();
 		}
 
-		[MonoTODO]
 		protected override ConfigurationElement CreateNewElement ()
 		{
-			throw new NotImplementedException ();
+			return new ProfilePropertySettings ();
 		}
 
-		[MonoTODO]
 		public ProfilePropertySettings Get (int index)
 		{
-			throw new NotImplementedException ();
+			return (ProfilePropertySettings) BaseGet (index);
 		}
 
-		[MonoTODO]
 		public ProfilePropertySettings Get (string name)
 		{
-			throw new NotImplementedException ();
+			return (ProfilePropertySettings) BaseGet (name);
 		}
 
-		[MonoTODO]
 		protected override object GetElementKey (ConfigurationElement element)
 		{
-			throw new NotImplementedException ();
+			return ((ProfilePropertySettings)element).Name;
 		}
 
-		[MonoTODO]
 		public string GetKey (int index)
 		{
-			throw new NotImplementedException ();
+			ProfilePropertySettings s = Get (index);
+			if (s == null)
+				return null;
+
+			return s.Name;
 		}
 
 		[MonoTODO]
@@ -104,16 +101,14 @@ namespace System.Web.Configuration
 			throw new NotImplementedException ();
 		}
 
-		[MonoTODO]
 		public void Remove (string name)
 		{
-			throw new NotImplementedException ();
+			BaseRemove (name);
 		}
 
-		[MonoTODO]
 		public void RemoveAt (int index)
 		{
-			throw new NotImplementedException ();
+			BaseRemoveAt (index);
 		}
 
 		[MonoTODO]
@@ -141,22 +136,16 @@ namespace System.Web.Configuration
 		}
 
 		public ProfilePropertySettings this[int index] {
-			get { return (ProfilePropertySettings) BaseGet (index); }
-			set { if (BaseGet (index) != null) BaseRemoveAt (index); BaseAdd (index, value); }
+			get { return Get (index); }
+			set { if (Get (index) != null) BaseRemoveAt (index); BaseAdd (index, value); }
 		}
 
-		[MonoTODO]
 		public new ProfilePropertySettings this[string name] {
-			get {
-				throw new NotImplementedException ();
-			}
+			get { return Get (name); }				
 		}
 
-		[MonoTODO]
 		protected override bool ThrowOnDuplicate {
-			get {
-				throw new NotImplementedException ();
-			}
+			get { return false; }
 		}
 
 	}

+ 5 - 4
mcs/class/System.Web/System.Web.Configuration_2.0/SqlCacheDependencyDatabaseCollection.cs

@@ -63,16 +63,17 @@ namespace System.Web.Configuration {
 			return new SqlCacheDependencyDatabase ();
 		}
 
-		[MonoTODO]
 		protected override object GetElementKey (ConfigurationElement element)
 		{
-			throw new NotImplementedException ();
+			return ((SqlCacheDependencyDatabase)element).Name;
 		}
 
-		[MonoTODO]
 		public string GetKey (int index)
 		{
-			throw new NotImplementedException ();
+			SqlCacheDependencyDatabase db = Get (index);
+			if (db == null)
+				return null;
+			return db.Name;
 		}
 
 		public void Remove (string name)

+ 6 - 2
mcs/class/System.Web/System.Web.Configuration_2.0/WebControlsSection.cs

@@ -29,6 +29,7 @@
 //
 
 using System;
+using System.Collections;
 using System.ComponentModel;
 using System.Configuration;
 
@@ -52,10 +53,13 @@ namespace System.Web.Configuration {
 			properties.Add (clientScriptsLocationProp);
 		}
 
-		[MonoTODO]
 		protected override object GetRuntimeObject ()
 		{
-			return this;
+			Hashtable ht = new Hashtable ();
+
+			ht.Add ("clientScriptsLocation", ClientScriptsLocation);
+
+			return ht;
 		}
 
 		[StringValidator (MinLength = 1)]

+ 1 - 1
mcs/class/System.Web/System.Web.Configuration_2.0/WebPartsSection.cs

@@ -58,7 +58,7 @@ namespace System.Web.Configuration {
 			properties.Add (transformersProp);
 		}
 
-		[MonoTODO]
+		[MonoTODO ("why override this?")]
 		protected override object GetRuntimeObject ()
 		{
 			return this;