Drop this one too
[mono.git] / mcs / class / System.ServiceModel.Routing / System.ServiceModel.Routing.Configuration / NamespaceElementCollection.cs
1 using System;
2 using System.Collections.Generic;
3 using System.Collections.ObjectModel;
4 using System.Configuration;
5 using System.ServiceModel;
6 using System.ServiceModel.Channels;
7 using System.ServiceModel.Configuration;
8 using System.ServiceModel.Description;
9 using System.ServiceModel.Dispatcher;
10
11 namespace System.ServiceModel.Routing.Configuration
12 {
13         [ConfigurationCollection (typeof(NamespaceElement))]
14         public class NamespaceElementCollection : ConfigurationElementCollection
15         {
16                 public void Add (NamespaceElement element)
17                 {
18                         BaseAdd (element);
19                 }
20
21                 public void Clear ()
22                 {
23                         BaseClear ();
24                 }
25
26                 protected override ConfigurationElement CreateNewElement ()
27                 {
28                         return new NamespaceElement ();
29                 }
30
31                 protected override object GetElementKey (ConfigurationElement element)
32                 {
33                         return ((NamespaceElement) element).Prefix;
34                 }
35
36                 public override bool IsReadOnly ()
37                 {
38                         return base.IsReadOnly ();
39                 }
40
41                 public void Remove (NamespaceElement element)
42                 {
43                         BaseRemove (element);
44                 }
45         }
46 }