[Mono-dev] [PATCH] System.Configuration.Provider.ProviderBase.cs
John Anderson
sontek at gmail.com
Fri Aug 31 01:09:06 EDT 2007
When dealing with the configuration, after the ProviderBase finds the
Description it needs to remove it from the NameValueCollection, This is how
it happens in MS.NET.
heres the patch:
Index: ProviderBase.cs
===================================================================
--- ProviderBase.cs (revision 85090)
+++ ProviderBase.cs (working copy)
@@ -55,9 +55,15 @@
_name = name;
if (config != null)
- _description = config["description"];
- if (_description == null)
- _description = _name;
+ {
+ if (config["description"] != null)
+ {
+ _description = config["description"];
+ config.Remove ("description");
+ }
+ else
+ _description = _name;
+ }
}
public virtual string Name {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20070830/eb9fb99b/attachment.html
More information about the Mono-devel-list
mailing list