namespace System.Web.Configuration
{
- [ConfigurationCollection (typeof (TagPrefixInfo))]
- public sealed class TagPrefixCollection : ConfigurationElementCollection, ICollection, IEnumerable
+ [ConfigurationCollection (typeof (TagPrefixInfo), CollectionType = ConfigurationElementCollectionType.BasicMap)]
+ public sealed class TagPrefixCollection : ConfigurationElementCollection
{
static ConfigurationPropertyCollection properties;
return new TagPrefixInfo ();
}
- [MonoTODO]
protected override object GetElementKey (ConfigurationElement element)
{
- return ((TagPrefixInfo)element).TagPrefix;
+ TagPrefixInfo info = (TagPrefixInfo)element;
+ return String.Concat (info.TagPrefix, "-", info.TagName, "-", info.Source, "-", info.Namespace, "-", info.Assembly);
}
public void Remove (TagPrefixInfo tagPrefixInformation)
{
- BaseRemove (tagPrefixInformation.TagPrefix);
+ BaseRemove (GetElementKey (tagPrefixInformation));
}
[MonoTODO ("why override this?")]