* KeyValueConfigurationCollection.cs: GetElementKey should throw
NRE if element == null.
svn path=/trunk/mcs/; revision=52214
2005-10-25 Chris Toshok <toshok@ximian.com>
+ * KeyValueConfigurationCollection.cs: GetElementKey should throw
+ NRE if element == null.
+
* CommaDelimitedStringCollection.cs: raise the correct exceptions
in the read only case, and return null from ToString if there are
0 elements.
return new KeyValueConfigurationElement ("", "");
}
+ [MonoTODO ("need to add back in the BaseIndexOf test")]
protected override object GetElementKey (ConfigurationElement element)
{
- if (element == null/* || BaseIndexOf (element) == -1*/)
+ if (false /* BaseIndexOf (element) == -1*/)
return "";
return ((KeyValueConfigurationElement)element).Key;