Files
mono/mcs/class/System.ServiceModel.Routing/System.ServiceModel.Routing.Configuration/BackupListCollection.cs
T
Raja R Harinath 897697630e * BackupListCollection.cs, FilterTableCollection.cs: Add indexer.
Apart from completing more of the API, this fixes a verification failure on the DLL

svn path=/trunk/mcs/; revision=152857
2010-03-02 17:24:25 +00:00

41 lines
1.0 KiB
C#

using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Configuration;
using System.ServiceModel;
using System.ServiceModel.Channels;
using System.ServiceModel.Configuration;
using System.ServiceModel.Description;
using System.ServiceModel.Dispatcher;
namespace System.ServiceModel.Routing.Configuration
{
[ConfigurationCollection (typeof (BackupEndpointCollection), AddItemName = "backupList")]
public class BackupListCollection : ConfigurationElementCollection
{
public void Add (BackupEndpointCollection element)
{
BaseAdd (element);
}
protected override ConfigurationElement CreateNewElement ()
{
return new BackupEndpointElement ();
}
protected override Object GetElementKey (ConfigurationElement element)
{
return ((BackupEndpointElement) element).EndpointName;
}
public void Remove (BackupEndpointCollection element)
{
BaseRemove (element);
}
public new BackupEndpointCollection this [string name] {
get { return (BackupEndpointCollection) BaseGet (name); }
}
}
}