(DISTFILES): Comment out a few missing files.
[mono-project.git] / mcs / class / System.Windows.Forms / Gtk / BaseCollection.cs
blob666bdba213ddd0506fb7b45ab112a7c67f145354
1 //
2 // System.Windows.Forms.BaseCollection
3 //
4 // Author:
5 // stubbed out by Jaak Simm (jaaksimm@firm.ee)
6 // Dennis hayes (dennish@raytek.com)
7 //
8 // (C) Ximian, Inc., 2002
9 //
11 using System;
12 using System.Collections;
14 namespace System.Windows.Forms {
16 /// <summary>
17 /// Provides the base functionality for creating data-related collections in the System.Windows.Forms namespace.
18 /// ToDo note:
19 /// - Synchronization is not implemented
20 /// - MarshalByRefObject members not stubbed out
21 /// </summary>
23 public class BaseCollection : MarshalByRefObject, ICollection, IEnumerable {
25 ArrayList list;
27 // --- Constructor ---
28 public BaseCollection()
30 this.list = null;
33 // --- public and protected Properties ---
34 // public virtual int ICollection.Count {
35 public virtual int Count {
36 get {
37 return list.Count;
41 public bool IsReadOnly {
42 //always false as per spec.
43 get { return false; }
46 public bool IsSynchronized {
47 //always false as per spec.
48 get { return false; }
51 protected virtual ArrayList List {
52 get {
53 return list;
57 public object SyncRoot {
58 get { return this; }
61 // --- public Methods ---
62 public void CopyTo (Array ar, int index)
64 list.CopyTo(ar, index);
67 public IEnumerator GetEnumerator()
69 return list.GetEnumerator();