ConfigurationElementCollection.cs 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263
  1. //
  2. // System.Configuration.ConfigurationElementCollection.cs
  3. //
  4. // Authors:
  5. // Tim Coleman ([email protected])
  6. //
  7. // Copyright (C) Tim Coleman, 2004
  8. //
  9. // Permission is hereby granted, free of charge, to any person obtaining
  10. // a copy of this software and associated documentation files (the
  11. // "Software"), to deal in the Software without restriction, including
  12. // without limitation the rights to use, copy, modify, merge, publish,
  13. // distribute, sublicense, and/or sell copies of the Software, and to
  14. // permit persons to whom the Software is furnished to do so, subject to
  15. // the following conditions:
  16. //
  17. // The above copyright notice and this permission notice shall be
  18. // included in all copies or substantial portions of the Software.
  19. //
  20. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  21. // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  22. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  23. // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
  24. // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
  25. // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  26. // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  27. //
  28. // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
  29. //
  30. #if NET_2_0 && XML_DEP
  31. using System.Collections;
  32. using System.Xml;
  33. namespace System.Configuration
  34. {
  35. public abstract class ConfigurationElementCollection : ConfigurationElement, ICollection, IEnumerable
  36. {
  37. #region Constructors
  38. [MonoTODO]
  39. protected ConfigurationElementCollection ()
  40. {
  41. throw new NotImplementedException ();
  42. }
  43. #endregion // Constructors
  44. #region Properties
  45. [MonoTODO]
  46. protected virtual ConfigurationElementCollectionType CollectionType {
  47. get { throw new NotImplementedException (); }
  48. }
  49. [MonoTODO]
  50. public virtual int Count {
  51. get { throw new NotImplementedException (); }
  52. }
  53. [MonoTODO]
  54. protected virtual string ElementName {
  55. get { throw new NotImplementedException (); }
  56. }
  57. [MonoTODO]
  58. public bool EmitClear {
  59. get { throw new NotImplementedException (); }
  60. }
  61. [MonoTODO]
  62. bool ICollection.IsSynchronized {
  63. get { throw new NotImplementedException (); }
  64. }
  65. [MonoTODO]
  66. object ICollection.SyncRoot {
  67. get { throw new NotImplementedException (); }
  68. }
  69. [MonoTODO]
  70. protected virtual bool ThrowOnDuplicate {
  71. get { throw new NotImplementedException (); }
  72. }
  73. #endregion // Properties
  74. #region Methods
  75. [MonoTODO]
  76. protected virtual void BaseAdd (ConfigurationElement element)
  77. {
  78. throw new NotImplementedException ();
  79. }
  80. [MonoTODO]
  81. protected virtual void BaseAdd (ConfigurationElement element, bool throwIfExists)
  82. {
  83. throw new NotImplementedException ();
  84. }
  85. [MonoTODO]
  86. protected virtual void BaseAdd (int index, ConfigurationElement element)
  87. {
  88. throw new NotImplementedException ();
  89. }
  90. [MonoTODO]
  91. protected internal void BaseClear ()
  92. {
  93. throw new NotImplementedException ();
  94. }
  95. [MonoTODO]
  96. protected internal ConfigurationElement BaseGet (int index)
  97. {
  98. throw new NotImplementedException ();
  99. }
  100. [MonoTODO]
  101. protected internal ConfigurationElement BaseGet (object key)
  102. {
  103. throw new NotImplementedException ();
  104. }
  105. [MonoTODO]
  106. protected internal string[] BaseGetAllKeys ()
  107. {
  108. throw new NotImplementedException ();
  109. }
  110. [MonoTODO]
  111. protected internal string BaseGetKey (int index)
  112. {
  113. throw new NotImplementedException ();
  114. }
  115. [MonoTODO]
  116. protected int BaseIndexOf (ConfigurationElement element)
  117. {
  118. throw new NotImplementedException ();
  119. }
  120. [MonoTODO]
  121. protected internal bool BaseIsRemoved (object key)
  122. {
  123. throw new NotImplementedException ();
  124. }
  125. [MonoTODO]
  126. protected internal void BaseRemove (object key)
  127. {
  128. throw new NotImplementedException ();
  129. }
  130. [MonoTODO]
  131. protected internal void BaseRemoveAt (int index)
  132. {
  133. throw new NotImplementedException ();
  134. }
  135. [MonoTODO]
  136. protected virtual bool CompareKeys (object key1, object key2)
  137. {
  138. throw new NotImplementedException ();
  139. }
  140. [MonoTODO]
  141. public void CopyTo (ConfigurationElement[] array, int index)
  142. {
  143. throw new NotImplementedException ();
  144. }
  145. protected abstract ConfigurationElement CreateNewElement ();
  146. [MonoTODO]
  147. protected virtual ConfigurationElement CreateNewElement (string elementName)
  148. {
  149. throw new NotImplementedException ();
  150. }
  151. [MonoTODO]
  152. public override bool Equals (object compareTo)
  153. {
  154. throw new NotImplementedException ();
  155. }
  156. protected abstract object GetElementKey (ConfigurationElement element);
  157. [MonoTODO]
  158. public override int GetHashCode ()
  159. {
  160. throw new NotImplementedException ();
  161. }
  162. [MonoTODO]
  163. protected override bool HandleUnrecognizedElement (string elementName, XmlReader reader)
  164. {
  165. throw new NotImplementedException ();
  166. }
  167. [MonoTODO]
  168. void ICollection.CopyTo (Array arr, int index)
  169. {
  170. throw new NotImplementedException ();
  171. }
  172. [MonoTODO]
  173. IEnumerator IEnumerable.GetEnumerator ()
  174. {
  175. throw new NotImplementedException ();
  176. }
  177. [MonoTODO]
  178. protected virtual bool IsElementName (string elementName)
  179. {
  180. throw new NotImplementedException ();
  181. }
  182. [MonoTODO]
  183. protected virtual bool IsElementRemovable (ConfigurationElement element)
  184. {
  185. throw new NotImplementedException ();
  186. }
  187. [MonoTODO]
  188. protected internal override bool IsModified ()
  189. {
  190. throw new NotImplementedException ();
  191. }
  192. [MonoTODO]
  193. protected internal override void Reset (ConfigurationElement parentElement, object context)
  194. {
  195. throw new NotImplementedException ();
  196. }
  197. [MonoTODO]
  198. protected internal override void ResetModified ()
  199. {
  200. throw new NotImplementedException ();
  201. }
  202. [MonoTODO]
  203. protected internal override bool Serialize (XmlWriter writer, bool serializeCollectionKey)
  204. {
  205. throw new NotImplementedException ();
  206. }
  207. [MonoTODO]
  208. protected internal override void UnMerge (ConfigurationElement sourceElement, ConfigurationElement parentElement, bool serializeCollectionKey, object context, ConfigurationUpdateMode updateMode)
  209. {
  210. throw new NotImplementedException ();
  211. }
  212. #endregion // Methods
  213. }
  214. }
  215. #endif