2 // System.Configuration.ConfigurationElementCollection.cs
5 // Tim Coleman (tim@timcoleman.com)
7 // Copyright (C) Tim Coleman, 2004
10 // Permission is hereby granted, free of charge, to any person obtaining
11 // a copy of this software and associated documentation files (the
12 // "Software"), to deal in the Software without restriction, including
13 // without limitation the rights to use, copy, modify, merge, publish,
14 // distribute, sublicense, and/or sell copies of the Software, and to
15 // permit persons to whom the Software is furnished to do so, subject to
16 // the following conditions:
18 // The above copyright notice and this permission notice shall be
19 // included in all copies or substantial portions of the Software.
21 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
23 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
24 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
25 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
26 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
27 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29 // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
32 #if NET_2_0 && XML_DEP
34 using System
.Collections
;
37 namespace System
.Configuration
39 public abstract class ConfigurationElementCollection
: ConfigurationElement
, ICollection
, IEnumerable
44 protected ConfigurationElementCollection ()
46 throw new NotImplementedException ();
49 #endregion // Constructors
54 protected virtual ConfigurationElementCollectionType CollectionType
{
55 get { throw new NotImplementedException (); }
59 public virtual int Count
{
60 get { throw new NotImplementedException (); }
64 protected virtual string ElementName
{
65 get { throw new NotImplementedException (); }
69 public bool EmitClear
{
70 get { throw new NotImplementedException (); }
74 bool ICollection
.IsSynchronized
{
75 get { throw new NotImplementedException (); }
79 object ICollection
.SyncRoot
{
80 get { throw new NotImplementedException (); }
84 protected virtual bool ThrowOnDuplicate
{
85 get { throw new NotImplementedException (); }
88 #endregion // Properties
93 protected virtual void BaseAdd (ConfigurationElement element
)
95 throw new NotImplementedException ();
99 protected virtual void BaseAdd (ConfigurationElement element
, bool throwIfExists
)
101 throw new NotImplementedException ();
105 protected virtual void BaseAdd (int index
, ConfigurationElement element
)
107 throw new NotImplementedException ();
111 protected internal void BaseClear ()
113 throw new NotImplementedException ();
117 protected internal ConfigurationElement
BaseGet (int index
)
119 throw new NotImplementedException ();
123 protected internal ConfigurationElement
BaseGet (object key
)
125 throw new NotImplementedException ();
129 protected internal string[] BaseGetAllKeys ()
131 throw new NotImplementedException ();
135 protected internal string BaseGetKey (int index
)
137 throw new NotImplementedException ();
141 protected int BaseIndexOf (ConfigurationElement element
)
143 throw new NotImplementedException ();
147 protected internal bool BaseIsRemoved (object key
)
149 throw new NotImplementedException ();
153 protected internal void BaseRemove (object key
)
155 throw new NotImplementedException ();
159 protected internal void BaseRemoveAt (int index
)
161 throw new NotImplementedException ();
165 protected virtual bool CompareKeys (object key1
, object key2
)
167 throw new NotImplementedException ();
171 public void CopyTo (ConfigurationElement
[] array
, int index
)
173 throw new NotImplementedException ();
176 protected abstract ConfigurationElement
CreateNewElement ();
179 protected virtual ConfigurationElement
CreateNewElement (string elementName
)
181 throw new NotImplementedException ();
185 public override bool Equals (object compareTo
)
187 throw new NotImplementedException ();
191 protected abstract object GetElementKey (ConfigurationElement element
);
194 public override int GetHashCode ()
196 throw new NotImplementedException ();
200 protected override bool HandleUnrecognizedElement (string elementName
, XmlReader reader
)
202 throw new NotImplementedException ();
206 void ICollection
.CopyTo (Array arr
, int index
)
208 throw new NotImplementedException ();
212 IEnumerator IEnumerable
.GetEnumerator ()
214 throw new NotImplementedException ();
218 protected virtual bool IsElementName (string elementName
)
220 throw new NotImplementedException ();
224 protected virtual bool IsElementRemovable (ConfigurationElement element
)
226 throw new NotImplementedException ();
230 protected internal override bool IsModified ()
232 throw new NotImplementedException ();
236 protected internal override void Reset (ConfigurationElement parentElement
, object context
)
238 throw new NotImplementedException ();
242 protected internal override void ResetModified ()
244 throw new NotImplementedException ();
248 protected internal override bool Serialize (XmlWriter writer
, bool serializeCollectionKey
)
250 throw new NotImplementedException ();
254 protected internal override void UnMerge (ConfigurationElement sourceElement
, ConfigurationElement parentElement
, bool serializeCollectionKey
, object context
, ConfigurationUpdateMode updateMode
)
256 throw new NotImplementedException ();
259 #endregion // Methods