1 //------------------------------------------------------------------------------
2 // <copyright file="SchemaImporterExtensionElementCollection.cs" company="Microsoft Corporation">
3 // Copyright (c) Microsoft Corporation. All rights reserved.
5 // <owner current="true" primary="true">[....]</owner>
6 //------------------------------------------------------------------------------
8 namespace System.Xml.Serialization.Configuration
12 using System.Configuration;
13 using System.Security.Permissions;
15 [ConfigurationCollection(typeof(SchemaImporterExtensionElement))]
16 public sealed class SchemaImporterExtensionElementCollection : ConfigurationElementCollection
18 public SchemaImporterExtensionElementCollection()
22 public SchemaImporterExtensionElement this[int index]
26 return (SchemaImporterExtensionElement)BaseGet(index);
30 if (BaseGet(index) != null)
38 public new SchemaImporterExtensionElement this[string name]
42 return (SchemaImporterExtensionElement)BaseGet(name);
46 if (BaseGet(name) != null)
54 public void Add(SchemaImporterExtensionElement element)
64 protected override ConfigurationElement CreateNewElement()
66 return new SchemaImporterExtensionElement();
69 protected override Object GetElementKey(ConfigurationElement element)
71 return ((SchemaImporterExtensionElement)element).Key;
74 public int IndexOf(SchemaImporterExtensionElement element)
76 return BaseIndexOf(element);
79 public void Remove(SchemaImporterExtensionElement element)
81 BaseRemove(element.Key);
84 public void Remove(string name)
89 public void RemoveAt(int index)