瀏覽代碼

2006-02-01 Atsushi Enomoto <[email protected]>

	* ConfigurationElement.cs : ListErrors() and SetPropertyValue()
	  are protected.
	* ConfigurationSection.cs : the .ctor() is protected.
	* ConfigurationElementCollection.cs : CollectionType is public.
	  Count and BaseAdd() are not virtual.
	* ConfigurationPropertyCollection.cs : Count is not virtual.

	* SettingElementCollection.cs : CollectionType is protected.

	* TrustLevelCollection.cs, CodeSubDirectoriesCollection.cs,
	  CustomErrorCollection.cs, CompilerCollection.cs,
	  HttpHandlerActionCollection.cs,
	  FormsAuthenticationUserCollection.cs,
	  AuthorizationRuleCollection.cs, TagPrefixCollection.cs :
	  CollectionType is public.


svn path=/trunk/mcs/; revision=56425
Atsushi Eno 20 年之前
父節點
當前提交
1bb2d8e284

+ 9 - 0
mcs/class/System.Configuration/System.Configuration/ChangeLog

@@ -1,3 +1,12 @@
+2006-02-01  Atsushi Enomoto  <[email protected]>
+
+	* ConfigurationElement.cs : ListErrors() and SetPropertyValue()
+	  are protected.
+	* ConfigurationSection.cs : the .ctor() is protected.
+	* ConfigurationElementCollection.cs : CollectionType is public.
+	  Count and BaseAdd() are not virtual.
+	* ConfigurationPropertyCollection.cs : Count is not virtual.
+
 2006-02-01  Chris Toshok  <[email protected]>
 
 	* ConfigurationElement.cs: revert the patch that stores and writes

+ 2 - 2
mcs/class/System.Configuration/System.Configuration/ConfigurationElement.cs

@@ -140,13 +140,13 @@ namespace System.Configuration
 		}
 
 		[MonoTODO]
-		public void ListErrors (IList list)
+		protected void ListErrors (IList list)
 		{
 			throw new NotImplementedException ();
 		}
 
 		[MonoTODO]
-		public void SetPropertyValue (ConfigurationProperty prop, object value, bool ignoreLocks)
+		protected void SetPropertyValue (ConfigurationProperty prop, object value, bool ignoreLocks)
 		{
 			try {
 				/* XXX all i know for certain is that Validation happens here */

+ 3 - 3
mcs/class/System.Configuration/System.Configuration/ConfigurationElementCollection.cs

@@ -80,7 +80,7 @@ namespace System.Configuration
 
 		#region Properties
 		
-		protected virtual ConfigurationElementCollectionType CollectionType {
+		public virtual ConfigurationElementCollectionType CollectionType {
 			get { return ConfigurationElementCollectionType.AddRemoveClearMap; }
 		}
 		
@@ -98,7 +98,7 @@ namespace System.Configuration
 			}
 		}
 
-		public virtual int Count {
+		public int Count {
 			get { return list.Count; }
 		}
 
@@ -147,7 +147,7 @@ namespace System.Configuration
 			BaseAdd (element, ThrowOnDuplicate);
 		}
 
-		protected virtual void BaseAdd (ConfigurationElement element, bool throwIfExists)
+		protected void BaseAdd (ConfigurationElement element, bool throwIfExists)
 		{
 			if (throwIfExists && BaseIndexOf (element) != -1)
 				throw new ConfigurationException ("Duplicate element in collection");

+ 1 - 1
mcs/class/System.Configuration/System.Configuration/ConfigurationPropertyCollection.cs

@@ -42,7 +42,7 @@ namespace System.Configuration
 			collection = new List <ConfigurationProperty> ();
 		}
 
-		public virtual int Count {
+		public int Count {
 			get { return collection.Count; }
 		}
 

+ 1 - 1
mcs/class/System.Configuration/System.Configuration/ConfigurationSection.cs

@@ -39,7 +39,7 @@ namespace System.Configuration
 	{
 		SectionInformation sectionInformation;
 		
-		public ConfigurationSection ()
+		protected ConfigurationSection ()
 		{
 		}
 		

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

@@ -104,7 +104,7 @@ namespace System.Web.Configuration {
 			BaseAdd(index, rule);
 		}
 
-		protected override ConfigurationElementCollectionType CollectionType {
+		public override ConfigurationElementCollectionType CollectionType {
 			get { return ConfigurationElementCollectionType.BasicMapAlternate; }
 		}
 

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

@@ -1,3 +1,12 @@
+2006-02-01  Atsushi Enomoto  <[email protected]>
+
+	* TrustLevelCollection.cs, CodeSubDirectoriesCollection.cs,
+	  CustomErrorCollection.cs, CompilerCollection.cs,
+	  HttpHandlerActionCollection.cs,
+	  FormsAuthenticationUserCollection.cs,
+	  AuthorizationRuleCollection.cs, TagPrefixCollection.cs :
+	  CollectionType is public.
+
 2006-02-01  Chris Toshok  <[email protected]>
 
 	* WebConfigurationManager.cs: In the normal case, get the current

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

@@ -54,7 +54,7 @@ namespace System.Web.Configuration
 			set { if (BaseGet (index) != null) BaseRemoveAt (index); BaseAdd (index, value); }
 		}
 
-		protected override ConfigurationElementCollectionType CollectionType {
+		public override ConfigurationElementCollectionType CollectionType {
 			get { return ConfigurationElementCollectionType.BasicMap; }
 		}
 

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

@@ -83,7 +83,7 @@ namespace System.Web.Configuration
 			}
 		}
 
-		protected override ConfigurationElementCollectionType CollectionType {
+		public override ConfigurationElementCollectionType CollectionType {
 			get { return ConfigurationElementCollectionType.BasicMap; }
 		}
 

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

@@ -114,7 +114,7 @@ namespace System.Web.Configuration {
 			}
 		}
 
-		protected override ConfigurationElementCollectionType CollectionType {
+		public override ConfigurationElementCollectionType CollectionType {
 			get { return ConfigurationElementCollectionType.BasicMap; }
 		}
 

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

@@ -118,7 +118,7 @@ namespace System.Web.Configuration
 			}
 		}
 
-		protected override ConfigurationElementCollectionType CollectionType {
+		public override ConfigurationElementCollectionType CollectionType {
 			get { return ConfigurationElementCollectionType.BasicMap; }
 		}
 

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

@@ -89,7 +89,7 @@ namespace System.Web.Configuration
 			BaseRemoveAt (index);
 		}
 
-		protected override ConfigurationElementCollectionType CollectionType {
+		public override ConfigurationElementCollectionType CollectionType {
 			get { return ConfigurationElementCollectionType.AddRemoveClearMapAlternate; }
 		}
 

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

@@ -77,7 +77,7 @@ namespace System.Web.Configuration
 		}
 
 		[MonoTODO ("why override this?")]
-		protected override ConfigurationElementCollectionType CollectionType {
+		public override ConfigurationElementCollectionType CollectionType {
 			get { return ConfigurationElementCollectionType.BasicMap; }
 		}
 

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

@@ -92,7 +92,7 @@ namespace System.Web.Configuration {
 			return elementname == "trustlevel";
 		}
 
-		protected override ConfigurationElementCollectionType CollectionType {
+		public override ConfigurationElementCollectionType CollectionType {
 			get { return ConfigurationElementCollectionType.BasicMap; }
 		}
 

+ 4 - 0
mcs/class/System/System.Configuration/ChangeLog

@@ -1,3 +1,7 @@
+2006-02-01  Atsushi Enomoto  <[email protected]>
+
+	* SettingElementCollection.cs : CollectionType is protected.
+
 2006-01-16  Chris Toshok  <[email protected]>
 
 	* ConfigurationSettings.cs (AppSettings): move back to a 1.x

+ 1 - 1
mcs/class/System/System.Configuration/SettingElementCollection.cs

@@ -78,7 +78,7 @@ namespace System.Configuration
 		}
 
 		[MonoTODO]
-		protected override ConfigurationElementCollectionType CollectionType {
+		public override ConfigurationElementCollectionType CollectionType {
 			get {
 				throw new NotImplementedException ();
 			}