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;
protected override ConfigurationElement CreateNewElement ()
{
- return new TagPrefixInfo ("", "", "", "", "");
+ 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]
- 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 {