namespace System.Configuration
{
- public sealed class SettingElementCollection : ConfigurationElementCollection
+ public sealed class SettingElementCollection
+#if (CONFIGURATION_DEP)
+ : ConfigurationElementCollection
+#endif
{
public SettingElementCollection ()
{
}
[MonoTODO]
- public void Remove (string elementKey)
+ public void Remove (SettingElement element)
{
throw new NotImplementedException ();
}
- [MonoTODO]
+#if (CONFIGURATION_DEP)
protected override ConfigurationElement CreateNewElement ()
{
- throw new NotImplementedException ();
+ return new SettingElement ();
}
- [MonoTODO]
protected override object GetElementKey (ConfigurationElement element)
{
- throw new NotImplementedException ();
+ return ((SettingElement) element).Name;
}
- [MonoTODO]
- protected override ConfigurationElementCollectionType CollectionType {
- get {
- throw new NotImplementedException ();
- }
+ public override ConfigurationElementCollectionType CollectionType {
+ get { return ConfigurationElementCollectionType.BasicMap; }
}
- [MonoTODO]
protected override string ElementName {
- get {
- throw new NotImplementedException ();
- }
+ get { return "setting"; }
}
+#endif
}
}