-////\r
-//// System.Windows.Forms.BaseCollection\r
-////\r
-//// Author:\r
-//// stubbed out by Jaak Simm (jaaksimm@firm.ee)\r
-////\r
-//// (C) Ximian, Inc., 2002\r
-////\r
-//\r
-//using System;\r
-//using System.Collections;\r
-//\r
-//namespace System.Windows.Forms\r
-//{\r
-// /// <summary>\r
-// /// Provides the base functionality for creating data-related collections in the System.Windows.Forms namespace.\r
-// /// ToDo note:\r
-// /// - Synchronization is not implemented\r
-// /// - MarshalByRefObject members not stubbed out\r
-// /// </summary>\r
-// \r
-// [MonoTODO]\r
-// public class BaseCollection : MarshalByRefObject, ICollection, IEnumerable\r
-// {\r
-// ArrayList list;\r
-// \r
-// \r
-// // --- Constructor ---\r
-// public BaseCollection()\r
-// {\r
-// this.list=null;\r
-// }\r
-//\r
-//\r
-//\r
-// // --- public and protected Properties ---\r
-// public virtual int Count {\r
-// get { return list.Count; }\r
-// }\r
-// \r
-// public bool IsReadOnly {\r
-// get { return false; }\r
-// }\r
-// \r
-// [MonoTODO]\r
-// public bool IsSynchronized {\r
-// // FIXME: should return true if object is synchronized\r
-// get { return false; }\r
-// }\r
-// \r
-// protected virtual ArrayList List {\r
-// get { return list; }\r
-// }\r
-// \r
-// [MonoTODO]\r
-// public object SyncRoot {\r
-// // FIXME: should return object that can be used with the C# lock keyword\r
-// get { return this; }\r
-// }\r
-// \r
-// \r
-// \r
-// // --- public Methods ---\r
-// public void CopyTo (Array ar, int index) {\r
-// list.CopyTo(ar, index);\r
-// }\r
-// \r
-// public IEnumerator GetEnumerator() {\r
-// return list.GetEnumerator();\r
-// }\r
-// \r
-// }\r
-//}\r
+//
+// System.Windows.Forms.BaseCollection
+//
+// Author:
+// stubbed out by Jaak Simm (jaaksimm@firm.ee)
+// Dennis hayes (dennish@raytek.com)
+//
+// (C) Ximian, Inc., 2002
+//
+
+using System;
+using System.Collections;
+
+namespace System.Windows.Forms {
+
+ /// <summary>
+ /// Provides the base functionality for creating data-related collections in the System.Windows.Forms namespace.
+ /// ToDo note:
+ /// - Synchronization is not implemented
+ /// - MarshalByRefObject members not stubbed out
+ /// </summary>
+
+ public class BaseCollection : MarshalByRefObject, ICollection, IEnumerable {
+
+ ArrayList list;
+
+ // --- Constructor ---
+ public BaseCollection()
+ {
+ this.list = null;
+ }
+
+ // --- public and protected Properties ---
+// public virtual int ICollection.Count {
+ public virtual int Count {
+ get {
+ return list.Count;
+ }
+ }
+
+ public bool IsReadOnly {
+ //always false as per spec.
+ get { return false; }
+ }
+
+ public bool IsSynchronized {
+ //always false as per spec.
+ get { return false; }
+ }
+
+ protected virtual ArrayList List {
+ get {
+ return list;
+ }
+ }
+
+ public object SyncRoot {
+ get { return this; }
+ }
+
+ // --- public Methods ---
+ public void CopyTo (Array ar, int index)
+ {
+ list.CopyTo(ar, index);
+ }
+
+ public IEnumerator GetEnumerator()
+ {
+ return list.GetEnumerator();
+ }
+
+ }
+}