Files
mono/mcs/class/System.Windows.Forms/Gtk/BaseCollection.cs
T
Joel Basson 636605aaa2 Tue Nov 18 23:00:00 GMT+2 2003 Joel Basson <[email protected]>
* New start to DataGrid. Imported files from swf-winelib
	* CurrencyManager.cs
	* BindingManagerBase.cs
	* BindingsCollection.cs
	* BaseCollection.cs
	* Binding.cs
	* ItemChangedEventArgs.cs
	* ItemChangedEventHandler.cs
	* ConvertEventArgs.cs
	* ConvertEventHandler.cs
	* BindingMemberInfo.cs
	* BorderStyle.cs
	* KeyEventArgs.cs
	* KeyEventHandler.cs
	* KeyPressEventArgs.cs
	* KeyPressEventHandler.cs
	* Keys.cs
	* AccessibleObject.cs
	* AccessibleEvents.cs
	* AccessibleNavigation.cs
	* AccessibleRole.cs
	* AccessibleSelection.cs
	* AccessibleStates.cs
	* NavigateEventArgs.cs
	* NavigateEventHandler.cs
	* PaintEventArgs.cs
	* PaintEventHandler.cs
	* GridTableStylesCollection.cs
	* GridColumnStylesCollection.cs
	* DataGrid.cs
	* IDataGridColumnStyleEditingNotificationService.cs
	* IDataGridEditingService.cs
	* DataGridColumnStyle.cs
	* DataGridBoolColumn.cs
	* DataGridCell.cs
	* DataGridLineStyle.cs
	* DataGridParentRowsLabelStyle.cs
	* DataGridPreferredColumnWidthTypeConverter.cs
	* DataGridTableStyle.cs
	* DataGridTextBoxColumn.cs
	* DataGridTextBox.cs

svn path=/trunk/mcs/; revision=20189
2003-11-18 21:14:15 +00:00

74 lines
1.3 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>
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();
}
}
}