Files
mono/mcs/class/System/System.ComponentModel/EventDescriptorCollection.cs
T
Rodrigo Moya 8d9414032f 2002-05-07 Rodrigo Moya <[email protected]>
* EventDescriptor.cs: added missing constructors.

	* EventDescriptorCollection.cs: fixed interface methods implementation

	* IDataErrorInfo.cs:
	* IEditableObject.cs: new interfaces.

svn path=/trunk/mcs/; revision=4388
2002-05-07 20:03:16 +00:00

112 lines
2.3 KiB
C#

//
// System.ComponentModel.EventDescriptorCollection.cs
//
// Author: Rodrigo Moya ([email protected])
//
// (C) Ximian, Inc.
//
using System.Collections;
namespace System.ComponentModel
{
public class EventDescriptorCollection : IList, ICollection, IEnumerable
{
private ArrayList eventList;
public static readonly EventDescriptorCollection Empty;
public EventDescriptorCollection (EventDescriptor[] events) {
for (int i = 0; i < events.Length; i++)
this.Add (events[i]);
}
public int IList.Add (object value) {
return eventList.Add (value);
}
public void Clear () {
eventList.Clear ();
}
public bool Contains (EventDescriptor value) {
return eventList.Contains (value);
}
[MonoTODO]
public virtual EventDescriptor Find (string name, bool ignoreCase) {
throw new NotImplementedException ();
}
public IEnumerator GetEnumerator () {
return eventList.GetEnumerator ();
}
public int IList.IndexOf (EventDescriptor value) {
return eventList.IndexOf (value);
}
public void IList.Insert (int index, EventDescriptor value) {
eventList.Insert (index, value);
}
public void IList.Remove (EventDescriptor value) {
eventList.Remove (value);
}
public void RemoveAt (int index) {
eventList.RemoveAt (index);
}
[MonoTODO]
public virtual EventDescriptorCollection Sort () {
throw new NotImplementedException ();
}
[MonoTODO]
public virtual EventDescriptorCollection Sort (IComparer comparer) {
throw new NotImplementedException ();
}
[MonoTODO]
public virtual EventDescriptorCollection Sort (string[] order) {
throw new NotImplementedException ();
}
[MonoTODO]
public virtual EventDescriptorCollection Sort (string[] order,
IComparer comparer) {
throw new NotImplementedException ();
}
[MonoTODO]
public virtual EventDescriptorCollection InternalSort (IComparer comparer) {
throw new NotImplementedException ();
}
[MonoTODO]
public virtual EventDescriptorCollection InternalSort (string[] order) {
throw new NotImplementedException ();
}
public int Count {
get {
return eventList.Count;
}
}
public virtual EventDescriptor this[string name] {
[MonoTODO]
get {
throw new NotImplementedException ();
}
}
public virtual EventDescriptor this[int index] {
get {
return eventList[index];
}
}
}
}