mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 03:51:19 -10:00
* Application.cs * Button.cs * ButtonBase.cs * changelog * ContainerControl.cs * Control.cs * DrawItemEventArgs.cs * DrawItemEventHandler.cs * Font.cs * Form.cs * IAccessible.cs * IContainerControl.cs * Label.cs * MenuItem.cs * MessageBox.cs * NativeWindow.cs * ScrollableControl.cs * Win32.cs * Added some implmentation. Uncommented some stuff. * About to add files to implment stuff uncommented. svn path=/trunk/mcs/; revision=8434
80 lines
1.4 KiB
C#
80 lines
1.4 KiB
C#
//
|
|
// System.Windows.Forms.BaseCollection
|
|
//
|
|
// Author:
|
|
// stubbed out by Jaak Simm ([email protected])
|
|
// Dennis hayes ([email protected])
|
|
//
|
|
// (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>
|
|
|
|
[MonoTODO]
|
|
public class BaseCollection : MarshalByRefObject, ICollection, IEnumerable {
|
|
|
|
ArrayList list;
|
|
|
|
|
|
// --- Constructor ---
|
|
public BaseCollection()
|
|
{
|
|
this.list = null;
|
|
}
|
|
|
|
|
|
|
|
// --- public and protected Properties ---
|
|
//virtual
|
|
int ICollection.Count {
|
|
get {
|
|
return list.Count;
|
|
}
|
|
}
|
|
|
|
public bool IsReadOnly {
|
|
//always false as per spec.
|
|
get { return false; }
|
|
}
|
|
|
|
[MonoTODO]
|
|
public bool IsSynchronized {
|
|
//always false as per spec.
|
|
get { return false; }
|
|
}
|
|
|
|
protected virtual ArrayList List {
|
|
get {
|
|
return list;
|
|
}
|
|
}
|
|
|
|
[MonoTODO]
|
|
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();
|
|
}
|
|
|
|
}
|
|
}
|