Collection.cs 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. // -*- Mode: csharp; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
  2. //
  3. // System.Collections.ObjectModel.Collection
  4. //
  5. // Author:
  6. // Zoltan Varga ([email protected])
  7. //
  8. // (C) 2005 Novell, Inc.
  9. //
  10. //
  11. // Copyright (C) 2005 Novell, Inc (http://www.novell.com)
  12. //
  13. // Permission is hereby granted, free of charge, to any person obtaining
  14. // a copy of this software and associated documentation files (the
  15. // "Software"), to deal in the Software without restriction, including
  16. // without limitation the rights to use, copy, modify, merge, publish,
  17. // distribute, sublicense, and/or sell copies of the Software, and to
  18. // permit persons to whom the Software is furnished to do so, subject to
  19. // the following conditions:
  20. //
  21. // The above copyright notice and this permission notice shall be
  22. // included in all copies or substantial portions of the Software.
  23. //
  24. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  25. // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  26. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  27. // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
  28. // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
  29. // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  30. // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  31. //
  32. #if NET_2_0
  33. using System;
  34. using System.Collections;
  35. using System.Collections.Generic;
  36. using System.Runtime.InteropServices;
  37. namespace System.Collections.ObjectModel
  38. {
  39. [ComVisible(false)]
  40. [Serializable]
  41. public class Collection<T> : IList<T>, ICollection<T>, IEnumerable<T>, IList, ICollection, IEnumerable
  42. {
  43. public Collection ()
  44. {
  45. throw new NotImplementedException ();
  46. }
  47. public Collection (IList<T> list)
  48. {
  49. throw new NotImplementedException ();
  50. }
  51. public void Add (T item)
  52. {
  53. throw new NotImplementedException ();
  54. }
  55. public void Clear ()
  56. {
  57. throw new NotImplementedException ();
  58. }
  59. public bool Contains (T item)
  60. {
  61. throw new NotImplementedException ();
  62. }
  63. public void CopyTo (T[] array, int index)
  64. {
  65. throw new NotImplementedException ();
  66. }
  67. public IEnumerator<T> GetEnumerator ()
  68. {
  69. throw new NotImplementedException ();
  70. }
  71. public int IndexOf (T item)
  72. {
  73. throw new NotImplementedException ();
  74. }
  75. public void Insert (int index, T item)
  76. {
  77. throw new NotImplementedException ();
  78. }
  79. public bool Remove (T item)
  80. {
  81. throw new NotImplementedException ();
  82. }
  83. public void RemoveAt (int index)
  84. {
  85. throw new NotImplementedException ();
  86. }
  87. public virtual int Count {
  88. get {
  89. throw new NotImplementedException ();
  90. }
  91. }
  92. public virtual T this [int index] {
  93. get {
  94. throw new NotImplementedException ();
  95. }
  96. set {
  97. throw new NotImplementedException ();
  98. }
  99. }
  100. public bool IsReadOnly {
  101. get {
  102. throw new NotImplementedException ();
  103. }
  104. }
  105. #region Not generic interface implementations
  106. void ICollection.CopyTo (Array array, int arrayIndex)
  107. {
  108. throw new NotImplementedException ();
  109. }
  110. IEnumerator IEnumerable.GetEnumerator()
  111. {
  112. throw new NotImplementedException ();
  113. }
  114. int IList.Add (object item)
  115. {
  116. throw new NotImplementedException ();
  117. }
  118. bool IList.Contains (object item)
  119. {
  120. throw new NotImplementedException ();
  121. }
  122. int IList.IndexOf (object item)
  123. {
  124. throw new NotImplementedException ();
  125. }
  126. void IList.Insert (int index, object item)
  127. {
  128. throw new NotImplementedException ();
  129. }
  130. void IList.Remove (object item)
  131. {
  132. throw new NotImplementedException ();
  133. }
  134. bool ICollection.IsSynchronized {
  135. get {
  136. throw new NotImplementedException ();
  137. }
  138. }
  139. object ICollection.SyncRoot {
  140. get {
  141. throw new NotImplementedException ();
  142. }
  143. }
  144. bool IList.IsFixedSize {
  145. get {
  146. throw new NotImplementedException ();
  147. }
  148. }
  149. bool IList.IsReadOnly {
  150. get {
  151. throw new NotImplementedException ();
  152. }
  153. }
  154. object IList.this [int index] {
  155. get {
  156. throw new NotImplementedException ();
  157. }
  158. set {
  159. throw new NotImplementedException ();
  160. }
  161. }
  162. #endregion
  163. }
  164. }
  165. #endif