2 // System.Windows.Forms.BaseCollection
5 // stubbed out by Jaak Simm (jaaksimm@firm.ee)
6 // Dennis hayes (dennish@raytek.com)
8 // (C) Ximian, Inc., 2002
12 using System
.Collections
;
14 namespace System
.Windows
.Forms
{
17 /// Provides the base functionality for creating data-related collections in the System.Windows.Forms namespace.
19 /// - Synchronization is not implemented
20 /// - MarshalByRefObject members not stubbed out
23 public class BaseCollection
: MarshalByRefObject
, ICollection
, IEnumerable
{
27 // --- Constructor ---
28 public BaseCollection()
33 // --- public and protected Properties ---
34 // public virtual int ICollection.Count {
35 public virtual int Count
{
41 public bool IsReadOnly
{
42 //always false as per spec.
46 public bool IsSynchronized
{
47 //always false as per spec.
51 protected virtual ArrayList List
{
57 public object SyncRoot
{
61 // --- public Methods ---
62 public void CopyTo (Array ar
, int index
)
64 list
.CopyTo(ar
, index
);
67 public IEnumerator
GetEnumerator()
69 return list
.GetEnumerator();