protected override ConfigurationElement CreateNewElement ()
{
- return new TagPrefixInfo ("", "", "", "", "");
+ return new TagPrefixInfo ();
}
- [MonoTODO]
protected override object GetElementKey (ConfigurationElement element)
{
return ((TagPrefixInfo)element).TagPrefix;
public void Remove (TagPrefixInfo tagPrefixInformation)
{
- BaseRemove (tagPrefixInformation);
+ BaseRemove (tagPrefixInformation.TagPrefix);
}
- [MonoTODO]
- protected override ConfigurationElementCollectionType CollectionType {
- get {
- return ConfigurationElementCollectionType.BasicMap;
- }
+ [MonoTODO ("why override this?")]
+ public override ConfigurationElementCollectionType CollectionType {
+ get { return ConfigurationElementCollectionType.BasicMap; }
}
- [MonoTODO]
+ [MonoTODO ("why override this?")]
protected override string ElementName {
- get {
- throw new NotImplementedException ();
- }
+ get { return "add"; }
}
protected override ConfigurationPropertyCollection Properties {
}
public TagPrefixInfo this[int index] {
- get { return (TagPrefixInfo) BaseGet (index);
- }
- [MonoTODO]
- set { throw new NotImplementedException (); }
+ get { return (TagPrefixInfo) BaseGet (index); }
+ set { if (BaseGet (index) != null) BaseRemoveAt (index); BaseAdd (index, value); }
}
protected override bool ThrowOnDuplicate {