[System.Configuration] Rename method parameters to match .NET contract
authorAlexander Köplinger <alex.koeplinger@outlook.com>
Wed, 15 Mar 2017 16:21:08 +0000 (17:21 +0100)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Thu, 16 Mar 2017 12:02:09 +0000 (13:02 +0100)
17 files changed:
mcs/class/System.Configuration/System.Configuration.Internal/DelegatingConfigHost.cs
mcs/class/System.Configuration/System.Configuration.Internal/IInternalConfigHost.cs
mcs/class/System.Configuration/System.Configuration/AppSettingsSection.cs
mcs/class/System.Configuration/System.Configuration/Configuration.cs
mcs/class/System.Configuration/System.Configuration/ConfigurationElement.cs
mcs/class/System.Configuration/System.Configuration/ConfigurationElementCollection.cs
mcs/class/System.Configuration/System.Configuration/ConfigurationProperty.cs
mcs/class/System.Configuration/System.Configuration/ConfigurationSectionGroup.cs
mcs/class/System.Configuration/System.Configuration/ConnectionStringSettingsCollection.cs
mcs/class/System.Configuration/System.Configuration/DpapiProtectedConfigurationProvider.cs
mcs/class/System.Configuration/System.Configuration/IgnoreSection.cs
mcs/class/System.Configuration/System.Configuration/ProtectedConfigurationProvider.cs
mcs/class/System.Configuration/System.Configuration/ProviderSettings.cs
mcs/class/System.Configuration/System.Configuration/ProviderSettingsCollection.cs
mcs/class/System.Configuration/System.Configuration/RsaProtectedConfigurationProvider.cs
mcs/class/System.Configuration/System.Configuration/SectionInformation.cs
mcs/class/System.Configuration/System.Configuration/ValidatorCallback.cs

index c642a6ce5b672d77fb00c7ea627e4a95ed92f912..db86289ba1ac218b2a63b6829701f3990422c66a 100644 (file)
@@ -56,9 +56,9 @@ namespace System.Configuration.Internal
                        return host.CreateDeprecatedConfigContext (configPath);
                }
                
-               public virtual string DecryptSection (string encryptedXml, ProtectedConfigurationProvider protectionProvider, ProtectedConfigurationSection protectedSection)
+               public virtual string DecryptSection (string encryptedXml, ProtectedConfigurationProvider protectionProvider, ProtectedConfigurationSection protectedConfigSection)
                {
-                       return host.DecryptSection (encryptedXml, protectionProvider, protectedSection);
+                       return host.DecryptSection (encryptedXml, protectionProvider, protectedConfigSection);
                }
                
                public virtual void DeleteStream (string streamName)
@@ -66,14 +66,14 @@ namespace System.Configuration.Internal
                        host.DeleteStream (streamName);
                }
                
-               public virtual string EncryptSection (string encryptedXml, ProtectedConfigurationProvider protectionProvider, ProtectedConfigurationSection protectedSection)
+               public virtual string EncryptSection (string clearTextXml, ProtectedConfigurationProvider protectionProvider, ProtectedConfigurationSection protectedConfigSection)
                {
-                       return host.EncryptSection (encryptedXml, protectionProvider, protectedSection);
+                       return host.EncryptSection (clearTextXml, protectionProvider, protectedConfigSection);
                }
                
-               public virtual string GetConfigPathFromLocationSubPath (string configPath, string locatinSubPath)
+               public virtual string GetConfigPathFromLocationSubPath (string configPath, string locationSubPath)
                {
-                       return host.GetConfigPathFromLocationSubPath (configPath, locatinSubPath);
+                       return host.GetConfigPathFromLocationSubPath (configPath, locationSubPath);
                }
                
                public virtual Type GetConfigType (string typeName, bool throwOnError)
@@ -111,14 +111,14 @@ namespace System.Configuration.Internal
                        return host.Impersonate ();
                }
                
-               public virtual void Init (IInternalConfigRoot root, params object[] hostInitParams)
+               public virtual void Init (IInternalConfigRoot configRoot, params object[] hostInitParams)
                {
-                       host.Init (root, hostInitParams);
+                       host.Init (configRoot, hostInitParams);
                }
                
-               public virtual void InitForConfiguration (ref string locationSubPath, out string configPath, out string locationConfigPath, IInternalConfigRoot root, params object[] hostInitConfigurationParams)
+               public virtual void InitForConfiguration (ref string locationSubPath, out string configPath, out string locationConfigPath, IInternalConfigRoot configRoot, params object[] hostInitConfigurationParams)
                {
-                       host.InitForConfiguration (ref locationSubPath, out configPath, out locationConfigPath, root, hostInitConfigurationParams);
+                       host.InitForConfiguration (ref locationSubPath, out configPath, out locationConfigPath, configRoot, hostInitConfigurationParams);
                }
                
                public virtual bool IsAboveApplication (string configPath)
index 2cde5e60c788f9f212202d2ed7cdf581d758536b..0445508661f3cab32fdba62270e71f7f87f5521a 100644 (file)
@@ -38,10 +38,10 @@ namespace System.Configuration.Internal
        {
                object CreateConfigurationContext (string configPath, string locationSubPath);
                object CreateDeprecatedConfigContext (string configPath);
-               string DecryptSection (string encryptedXml, ProtectedConfigurationProvider protectionProvider, ProtectedConfigurationSection protectedSection);
+               string DecryptSection (string encryptedXml, ProtectedConfigurationProvider protectionProvider, ProtectedConfigurationSection protectedConfigSection);
                void DeleteStream (string streamName);
-               string EncryptSection (string encryptedXml, ProtectedConfigurationProvider protectionProvider, ProtectedConfigurationSection protectedSection);
-               string GetConfigPathFromLocationSubPath (string configPath, string locatinSubPath);
+               string EncryptSection (string clearTextXml, ProtectedConfigurationProvider protectionProvider, ProtectedConfigurationSection protectedConfigSection);
+               string GetConfigPathFromLocationSubPath (string configPath, string locationSubPath);
                Type GetConfigType (string typeName, bool throwOnError);
                string GetConfigTypeName (Type t);
                void GetRestrictedPermissions (IInternalConfigRecord configRecord, out PermissionSet permissionSet, out bool isHostReady);
@@ -49,8 +49,8 @@ namespace System.Configuration.Internal
                string GetStreamNameForConfigSource (string streamName, string configSource);
                object GetStreamVersion (string streamName);
                IDisposable Impersonate ();
-               void Init (IInternalConfigRoot root, params object[] hostInitParams);
-               void InitForConfiguration (ref string locationSubPath, out string configPath, out string locationConfigPath, IInternalConfigRoot root, params object[] hostInitConfigurationParams);
+               void Init (IInternalConfigRoot configRoot, params object[] hostInitParams);
+               void InitForConfiguration (ref string locationSubPath, out string configPath, out string locationConfigPath, IInternalConfigRoot configRoot, params object[] hostInitConfigurationParams);
                bool IsAboveApplication (string configPath);
                bool IsConfigRecordRequired (string configPath);
                bool IsDefinitionAllowed (string configPath, ConfigurationAllowDefinition allowDefinition, ConfigurationAllowExeDefinition allowExeDefinition);
index 9badcd34afdf5f85d9f3656310870bfdc67e2c70..65b63cdee8b266d8699e9eb47c6e565b1f84ac7e 100644 (file)
@@ -95,10 +95,10 @@ namespace System.Configuration {
 
                [MonoTODO]
                protected internal override string SerializeSection (
-                       ConfigurationElement parent, string name, ConfigurationSaveMode mode)
+                       ConfigurationElement parentElement, string name, ConfigurationSaveMode saveMode)
                {
                        if (File == "") {
-                               return base.SerializeSection (parent, name, mode);
+                               return base.SerializeSection (parentElement, name, saveMode);
                        }
                        else {
                                throw new NotImplementedException ();
index fb48cc9664f27b743154806f992f342e7e9a8f35..7e78b1b325f1946ab1bcbb8e95c0ee43ffa7681f 100644 (file)
@@ -251,9 +251,9 @@ namespace System.Configuration {
                        get { return RootSectionGroup.Sections; }
                }
                
-               public ConfigurationSection GetSection (string path)
+               public ConfigurationSection GetSection (string sectionName)
                {
-                       string[] parts = path.Split ('/');
+                       string[] parts = sectionName.Split ('/');
                        if (parts.Length == 1)
                                return Sections [parts[0]];
 
@@ -267,9 +267,9 @@ namespace System.Configuration {
                                return null;
                }
                
-               public ConfigurationSectionGroup GetSectionGroup (string path)
+               public ConfigurationSectionGroup GetSectionGroup (string sectionGroupName)
                {
-                       string[] parts = path.Split ('/');
+                       string[] parts = sectionGroupName.Split ('/');
                        ConfigurationSectionGroup group = SectionGroups [parts[0]];
                        for (int n=1; group != null && n<parts.Length; n++)
                                group = group.SectionGroups [parts [n]];
@@ -388,14 +388,14 @@ namespace System.Configuration {
                        Save (ConfigurationSaveMode.Modified, false);
                }
                
-               public void Save (ConfigurationSaveMode mode)
+               public void Save (ConfigurationSaveMode saveMode)
                {
-                       Save (mode, false);
+                       Save (saveMode, false);
                }
                
-               public void Save (ConfigurationSaveMode mode, bool forceUpdateAll)
+               public void Save (ConfigurationSaveMode saveMode, bool forceSaveAll)
                {
-                       if (!forceUpdateAll && (mode != ConfigurationSaveMode.Full) && !HasValues (mode)) {
+                       if (!forceSaveAll && (saveMode != ConfigurationSaveMode.Full) && !HasValues (saveMode)) {
                                ResetModified ();
                                return;
                        }
@@ -410,7 +410,7 @@ namespace System.Configuration {
                                if (saveStart != null)
                                        saveStart (this, new ConfigurationSaveEventArgs (streamName, true, null, ctx));
                                
-                               Save (stream, mode, forceUpdateAll);
+                               Save (stream, saveMode, forceSaveAll);
                                system.Host.WriteCompleted (streamName, true, ctx);
                        } catch (Exception ex) {
                                saveEx = ex;
@@ -428,15 +428,15 @@ namespace System.Configuration {
                        SaveAs (filename, ConfigurationSaveMode.Modified, false);
                }
                
-               public void SaveAs (string filename, ConfigurationSaveMode mode)
+               public void SaveAs (string filename, ConfigurationSaveMode saveMode)
                {
-                       SaveAs (filename, mode, false);
+                       SaveAs (filename, saveMode, false);
                }
 
                [MonoInternalNote ("Detect if file has changed")]
-               public void SaveAs (string filename, ConfigurationSaveMode mode, bool forceUpdateAll)
+               public void SaveAs (string filename, ConfigurationSaveMode saveMode, bool forceSaveAll)
                {
-                       if (!forceUpdateAll && (mode != ConfigurationSaveMode.Full) && !HasValues (mode)) {
+                       if (!forceSaveAll && (saveMode != ConfigurationSaveMode.Full) && !HasValues (saveMode)) {
                                ResetModified ();
                                return;
                        }
@@ -444,7 +444,7 @@ namespace System.Configuration {
                        string dir = Path.GetDirectoryName (Path.GetFullPath (filename));
                        if (!Directory.Exists (dir))
                                Directory.CreateDirectory (dir);
-                       Save (new FileStream (filename, FileMode.OpenOrCreate, FileAccess.Write), mode, forceUpdateAll);
+                       Save (new FileStream (filename, FileMode.OpenOrCreate, FileAccess.Write), saveMode, forceSaveAll);
                }
 
                void Save (Stream stream, ConfigurationSaveMode mode, bool forceUpdateAll)
index 624a32558b92f9174b02a90190626f781393756c..a1e6e16d9535378634eff6a5832e803ee88abf09 100644 (file)
@@ -155,7 +155,7 @@ namespace System.Configuration
                }
 
                [MonoTODO]
-               protected virtual void ListErrors (IList list)
+               protected virtual void ListErrors (IList errorList)
                {
                        throw new NotImplementedException ();
                }
@@ -215,24 +215,24 @@ namespace System.Configuration
                        return defaultCollection;
                }
 
-               protected internal object this [ConfigurationProperty property] {
-                       get { return this [property.Name]; }
-                       set { this [property.Name] = value; }
+               protected internal object this [ConfigurationProperty prop] {
+                       get { return this [prop.Name]; }
+                       set { this [prop.Name] = value; }
                }
 
-               protected internal object this [string property_name] {
+               protected internal object this [string propertyName] {
                        get {
-                               PropertyInformation pi = ElementInformation.Properties [property_name];
+                               PropertyInformation pi = ElementInformation.Properties [propertyName];
                                if (pi == null)
-                                       throw new InvalidOperationException ("Property '" + property_name + "' not found in configuration element");
+                                       throw new InvalidOperationException ("Property '" + propertyName + "' not found in configuration element");
 
                                return pi.Value;
                        }
 
                        set {
-                               PropertyInformation pi = ElementInformation.Properties [property_name];
+                               PropertyInformation pi = ElementInformation.Properties [propertyName];
                                if (pi == null)
-                                       throw new InvalidOperationException ("Property '" + property_name + "' not found in configuration element");
+                                       throw new InvalidOperationException ("Property '" + propertyName + "' not found in configuration element");
 
                                SetPropertyValue (pi.Property, value, false);
 
@@ -415,7 +415,7 @@ namespace System.Configuration
                        return false;
                }
 
-               protected virtual bool OnDeserializeUnrecognizedElement (string element, XmlReader reader)
+               protected virtual bool OnDeserializeUnrecognizedElement (string elementName, XmlReader reader)
                {
                        return false;
                }
@@ -545,16 +545,16 @@ namespace System.Configuration
                }
 
                protected internal virtual void Unmerge (
-                               ConfigurationElement source, ConfigurationElement parent,
-                               ConfigurationSaveMode updateMode)
+                               ConfigurationElement sourceElement, ConfigurationElement parentElement,
+                               ConfigurationSaveMode saveMode)
                {
-                       if (parent != null && source.GetType() != parent.GetType())
+                       if (parentElement != null && sourceElement.GetType() != parentElement.GetType())
                                throw new ConfigurationErrorsException ("Can't unmerge two elements of different type");
 
-                       bool isMinimalOrModified = updateMode == ConfigurationSaveMode.Minimal ||
-                               updateMode == ConfigurationSaveMode.Modified;
+                       bool isMinimalOrModified = saveMode == ConfigurationSaveMode.Minimal ||
+                               saveMode == ConfigurationSaveMode.Modified;
 
-                       foreach (PropertyInformation prop in source.ElementInformation.Properties)
+                       foreach (PropertyInformation prop in sourceElement.ElementInformation.Properties)
                        {
                                if (prop.ValueOrigin == PropertyValueOrigin.Default)
                                        continue;
@@ -562,7 +562,7 @@ namespace System.Configuration
                                PropertyInformation unmergedProp = ElementInformation.Properties [prop.Name];
                                
                                object sourceValue = prop.Value;
-                               if (parent == null || !parent.HasValue (prop.Name)) {
+                               if (parentElement == null || !parentElement.HasValue (prop.Name)) {
                                        unmergedProp.Value = sourceValue;
                                        continue;
                                }
@@ -570,11 +570,11 @@ namespace System.Configuration
                                if (sourceValue == null)
                                        continue;
 
-                               object parentValue = parent [prop.Name];
+                               object parentValue = parentElement [prop.Name];
                                if (!prop.IsElement) {
                                        if (!object.Equals (sourceValue, parentValue) || 
-                                           (updateMode == ConfigurationSaveMode.Full) ||
-                                           (updateMode == ConfigurationSaveMode.Modified && prop.ValueOrigin == PropertyValueOrigin.SetHere))
+                                           (saveMode == ConfigurationSaveMode.Full) ||
+                                           (saveMode == ConfigurationSaveMode.Modified && prop.ValueOrigin == PropertyValueOrigin.SetHere))
                                                unmergedProp.Value = sourceValue;
                                        continue;
                                }
@@ -589,7 +589,7 @@ namespace System.Configuration
 
                                var parentElementValue = (ConfigurationElement) parentValue;
                                ConfigurationElement copy = (ConfigurationElement) unmergedProp.Value;
-                               copy.Unmerge (sourceElementValue, parentElementValue, updateMode);
+                               copy.Unmerge (sourceElementValue, parentElementValue, saveMode);
                        }
                }
                
index 6e379c87b9153222c541f65ea3cacf33c3561aed..c5a87877276f5cfd6de8e2f343b7fd986a4ca21b 100644 (file)
@@ -555,7 +555,7 @@ namespace System.Configuration
                        return false;
                }
                
-               protected internal override void Unmerge (ConfigurationElement sourceElement, ConfigurationElement parentElement, ConfigurationSaveMode updateMode)
+               protected internal override void Unmerge (ConfigurationElement sourceElement, ConfigurationElement parentElement, ConfigurationSaveMode saveMode)
                {
                        ConfigurationElementCollection source = (ConfigurationElementCollection) sourceElement;
                        ConfigurationElementCollection parent = (ConfigurationElementCollection) parentElement;
@@ -565,9 +565,9 @@ namespace System.Configuration
                                object key = source.GetElementKey (sitem);
                                ConfigurationElement pitem = parent != null ? parent.BaseGet (key) as ConfigurationElement : null;
                                ConfigurationElement nitem = CreateNewElementInternal (null);
-                               if (pitem != null && updateMode != ConfigurationSaveMode.Full) {
-                                       nitem.Unmerge (sitem, pitem, updateMode);
-                                       if (nitem.HasValues (pitem, updateMode))
+                               if (pitem != null && saveMode != ConfigurationSaveMode.Full) {
+                                       nitem.Unmerge (sitem, pitem, saveMode);
+                                       if (nitem.HasValues (pitem, saveMode))
                                                BaseAdd (nitem);
                                } else {
                                        nitem.Unmerge (sitem, null, ConfigurationSaveMode.Full);
@@ -575,7 +575,7 @@ namespace System.Configuration
                                }
                        }
                        
-                       if (updateMode == ConfigurationSaveMode.Full)
+                       if (saveMode == ConfigurationSaveMode.Full)
                                EmitClear = true;
                        else if (parent != null) {
                                for (int n=0; n<parent.Count; n++) {
index ec3738812310c8e3e9649b5a33d41af3353d9dd4..50b8406ae41fa0e0974ca20756b6506c81a74d0e 100644 (file)
@@ -49,60 +49,60 @@ namespace System.Configuration
                        : this (name, type, NoDefaultValue, TypeDescriptor.GetConverter (type), new DefaultValidator(), ConfigurationPropertyOptions.None, null)
                { }
 
-               public ConfigurationProperty (string name, Type type, object default_value)
-                       : this (name, type, default_value, TypeDescriptor.GetConverter (type), new DefaultValidator(), ConfigurationPropertyOptions.None, null)
+               public ConfigurationProperty (string name, Type type, object defaultValue)
+                       : this (name, type, defaultValue, TypeDescriptor.GetConverter (type), new DefaultValidator(), ConfigurationPropertyOptions.None, null)
                { }
 
                public ConfigurationProperty (
-                                       string name, Type type, object default_value,
-                                       ConfigurationPropertyOptions flags)
-                       :this (name, type, default_value, TypeDescriptor.GetConverter (type), new DefaultValidator(), flags, null)
+                                       string name, Type type, object defaultValue,
+                                       ConfigurationPropertyOptions options)
+                       :this (name, type, defaultValue, TypeDescriptor.GetConverter (type), new DefaultValidator(), options, null)
                { }
                
                public ConfigurationProperty (
-                                       string name, Type type, object default_value,
-                                       TypeConverter converter,
-                                       ConfigurationValidatorBase validation,
-                                       ConfigurationPropertyOptions flags)
-                       : this (name, type, default_value, converter, validation, flags, null)
+                                       string name, Type type, object defaultValue,
+                                       TypeConverter typeConverter,
+                                       ConfigurationValidatorBase validator,
+                                       ConfigurationPropertyOptions options)
+                       : this (name, type, defaultValue, typeConverter, validator, options, null)
                { }
 
                public ConfigurationProperty (
-                                       string name, Type type, object default_value,
-                                       TypeConverter converter,
-                                       ConfigurationValidatorBase validation,
-                                       ConfigurationPropertyOptions flags,
+                                       string name, Type type, object defaultValue,
+                                       TypeConverter typeConverter,
+                                       ConfigurationValidatorBase validator,
+                                       ConfigurationPropertyOptions options,
                                        string description)
                {
                        this.name = name;
-                       this.converter = converter != null ? converter : TypeDescriptor.GetConverter (type);
-                       if (default_value != null) {
-                               if (default_value == NoDefaultValue) {
+                       this.converter = typeConverter != null ? typeConverter : TypeDescriptor.GetConverter (type);
+                       if (defaultValue != null) {
+                               if (defaultValue == NoDefaultValue) {
                                        switch (Type.GetTypeCode (type)) {
                                        case TypeCode.Object:
-                                               default_value = null;
+                                               defaultValue = null;
                                                break;
                                        case TypeCode.String:
-                                               default_value = String.Empty;
+                                               defaultValue = String.Empty;
                                                break;
                                        default:
-                                               default_value = Activator.CreateInstance (type);
+                                               defaultValue = Activator.CreateInstance (type);
                                                break;
                                        }
                                }
                                else
-                                       if (!type.IsAssignableFrom (default_value.GetType ())) {
-                                               if (!this.converter.CanConvertFrom (default_value.GetType ()))
+                                       if (!type.IsAssignableFrom (defaultValue.GetType ())) {
+                                               if (!this.converter.CanConvertFrom (defaultValue.GetType ()))
                                                        throw new ConfigurationErrorsException (String.Format ("The default value for property '{0}' has a different type than the one of the property itself: expected {1} but was {2}",
-                                                                                                          name, type, default_value.GetType ()));
+                                                                                                          name, type, defaultValue.GetType ()));
 
-                                               default_value = this.converter.ConvertFrom (default_value);
+                                               defaultValue = this.converter.ConvertFrom (defaultValue);
                                        }
                        }
-                       this.default_value = default_value;
-                       this.flags = flags;
+                       this.default_value = defaultValue;
+                       this.flags = options;
                        this.type = type;
-                       this.validation = validation != null ? validation : new DefaultValidator ();
+                       this.validation = validator != null ? validator : new DefaultValidator ();
                        this.description = description;
                }
 
index add89b5bd3f5bb673ecf4f83b3866822c205f6ae..1412ede6e6a5222285e912683b603091b5bf6aed 100644 (file)
@@ -70,9 +70,9 @@ namespace System.Configuration
                }
 
                [MonoTODO]
-               public void ForceDeclaration (bool require)
+               public void ForceDeclaration (bool force)
                {
-                       this.require_declaration = require;
+                       this.require_declaration = force;
                }
 
                public void ForceDeclaration ()
index 7da715ce56b673905927aac7fa1ab18965da320d..8044246f229ad1fa20d6bff7ba3e59be90939a94 100644 (file)
@@ -41,13 +41,13 @@ namespace System.Configuration
                 {
                 }
 
-                public new ConnectionStringSettings this [string Name]
+                public new ConnectionStringSettings this [string name]
                 {
                         get {
                                 foreach (ConfigurationElement c in this) {
                                         if (!(c is ConnectionStringSettings))
                                                 continue;
-                                        if (string.Compare(((ConnectionStringSettings) c).Name, Name, true, 
+                                        if (string.Compare(((ConnectionStringSettings) c).Name, name, true, 
                                                 System.Globalization.CultureInfo.InvariantCulture) == 0)
                                                 return c as ConnectionStringSettings;
 
index 71fd65b193fcf99f29d2996059274a042ec0df96..6ac6b6b39fb1063f67d5418eafe08e0b352ab429 100644 (file)
@@ -38,7 +38,7 @@ namespace System.Configuration
 Protection API, and is unimplemented in Mono.  For portability's sake,
 it is suggested that you use the RsaProtectedConfigurationProvider.";
                [MonoNotSupported (NotSupportedReason)]
-               public override XmlNode Decrypt (XmlNode encrypted_node)
+               public override XmlNode Decrypt (XmlNode encryptedNode)
                {
                        throw new NotSupportedException (NotSupportedReason);
                }
index 0e6672df18b5bb10dc4b1c5ce3af88e5333c3ddd..09883818be557d2a61847686f9d0fe05bf0a8783 100644 (file)
@@ -54,15 +54,15 @@ namespace System.Configuration {
                        return false;
                }
 
-               protected internal override void DeserializeSection (XmlReader reader)
+               protected internal override void DeserializeSection (XmlReader xmlReader)
                {
-                       xml = reader.ReadOuterXml ();
+                       xml = xmlReader.ReadOuterXml ();
                }
 
                [MonoTODO]
-               protected internal override void Reset (ConfigurationElement parentElement)
+               protected internal override void Reset (ConfigurationElement parentSection)
                {
-                       base.Reset (parentElement);
+                       base.Reset (parentSection);
                }
 
                [MonoTODO]
@@ -71,7 +71,7 @@ namespace System.Configuration {
                        base.ResetModified ();
                }
 
-               protected internal override string SerializeSection (ConfigurationElement parentElement, string name, ConfigurationSaveMode saveMode)
+               protected internal override string SerializeSection (ConfigurationElement parentSection, string name, ConfigurationSaveMode saveMode)
                {
                        return xml;
                }
index aca0c163f02bcc4587b7a7223635fe172c732c5c..c957954115a5f3e09d1194311df59047e7ead3d1 100644 (file)
@@ -37,7 +37,7 @@ namespace System.Configuration
                {
                }
 
-               public abstract XmlNode Decrypt (XmlNode encrypted_node);
+               public abstract XmlNode Decrypt (XmlNode encryptedNode);
 
                public abstract XmlNode Encrypt (XmlNode node);
        }
index 6d4db6a0b077bb72ef79978599a6d32cfa999417..ea4d72cc12c022178a472d881db44b96110670e6 100644 (file)
@@ -89,10 +89,10 @@ namespace System.Configuration
 
                [MonoTODO]
                protected internal override void Unmerge (
-                               ConfigurationElement source, ConfigurationElement parent,
-                               ConfigurationSaveMode updateMode)
+                               ConfigurationElement sourceElement, ConfigurationElement parentElement,
+                               ConfigurationSaveMode saveMode)
                {
-                       base.Unmerge (source, parent, updateMode);
+                       base.Unmerge (sourceElement, parentElement, saveMode);
                }
                
                [ConfigurationProperty ("name", Options = ConfigurationPropertyOptions.IsRequired | ConfigurationPropertyOptions.IsKey)]
index 25bbc3a41f4094a9e51b3fa36898319bfe5290db..f115cd2a3c97e9d498eac667706ed7c2a4c47c24 100644 (file)
@@ -58,15 +58,15 @@ namespace System.Configuration
                        return ((ProviderSettings)element).Name;
                }
                
-               public void Remove (string key)
+               public void Remove (string name)
                {
-                       BaseRemove (key);
+                       BaseRemove (name);
                }
                
-               public ProviderSettings this [int n]
+               public ProviderSettings this [int index]
                {
-                       get { return (ProviderSettings) BaseGet (n); }
-                       set { BaseAdd (n, value); }
+                       get { return (ProviderSettings) BaseGet (index); }
+                       set { BaseAdd (index, value); }
                }
                
                public new ProviderSettings this [string key]
index bbb0eea08b302223ce6347cb7ad559d2f2fe5f2d..d20a75195648e899c2fc53c81516d767b6eb782f 100644 (file)
@@ -63,11 +63,11 @@ namespace System.Configuration
                }
 
                [MonoTODO]
-               public override XmlNode Decrypt (XmlNode encrypted_node)
+               public override XmlNode Decrypt (XmlNode encryptedNode)
                {
                        XmlDocument doc = new ConfigurationXmlDocument ();
                        
-                       doc.Load (new StringReader (encrypted_node.OuterXml));
+                       doc.Load (new StringReader (encryptedNode.OuterXml));
 
                        EncryptedXml ex = new EncryptedXml (doc);
 
index f05406c4b5bf19f22054bca318f66cdef8f87a2a..5bbf19f1fa0b4a24bcd457dcdea0adf0ae4f424e 100644 (file)
@@ -175,13 +175,13 @@ namespace System.Configuration
                        return raw_xml;
                }
 
-               public void ProtectSection (string provider)
+               public void ProtectSection (string protectionProvider)
                {
-                       protection_provider = ProtectedConfiguration.GetProvider (provider, true);
+                       protection_provider = ProtectedConfiguration.GetProvider (protectionProvider, true);
                }
 
                [MonoTODO]
-               public void ForceDeclaration (bool require)
+               public void ForceDeclaration (bool force)
                {
                }
 
@@ -201,9 +201,9 @@ namespace System.Configuration
                        protection_provider = null;
                }
 
-               public void SetRawXml (string xml)
+               public void SetRawXml (string rawXml)
                {
-                       raw_xml = xml;
+                       raw_xml = rawXml;
                }
 
                [MonoTODO]
index 4713a1d4a373cd0530ba6431a1367ef609149b1b..7233b87d5132f4cee0fd3b47816c25d54c118339 100644 (file)
@@ -30,6 +30,6 @@ using System;
 using System.IO;
 
 namespace System.Configuration {
-       public delegate void ValidatorCallback (object o);
+       public delegate void ValidatorCallback (object value);
 }