namespace System.ComponentModel
{
[ComVisible (true)]
- public class AttributeCollection : ICollection, IEnumerable
+ public class AttributeCollection : ICollection
{
private ArrayList attrList = new ArrayList ();
public static readonly AttributeCollection Empty = new AttributeCollection ((ArrayList)null);
attrList.CopyTo (array, index);
}
+ IEnumerator IEnumerable.GetEnumerator () {
+ return GetEnumerator ();
+ }
+
public IEnumerator GetEnumerator ()
{
return attrList.GetEnumerator ();
}
}
+ int ICollection.Count {
+ get {
+ return Count;
+ }
+ }
+
public int Count {
get {
return attrList.Count;
+2006-05-31 Gert Driesen <drieseng@users.sourceforge.net>
+
+ * TypeConverter.cs: Added explicit interface implementation for
+ ICollection.CopyTo and IEnumerable.GetEnumerator. Fixes corcompare
+ warnings.
+ * Component.cs: Remove TypeConverter attribute. Fixes corcompare
+ warning.
+ * AttributeCollection.cs: Added explicit interface implemenation for
+ IEnumerable.GetEnumerator, IList.RemoveAt and ICollection.Count.
+ Fixes corcompare warnings.
+ * PropertyDescriptorCollection.cs: Added explicit interface
+ implemenation for ICollection.Count. Fixes corcompare warning.
+
2006-05-22 Atsushi Enomoto <atsushi@ximian.com>
* TypeDescriptor.cs : GetProperties() does not return indexers.
namespace System.ComponentModel {
[DesignerCategory ("Component")]
- [TypeConverter(typeof(ComponentConverter))]
public class Component : MarshalByRefObject, IComponent, IDisposable
{
return eventList.Add (value);
}
+ void IList.Clear () {
+ Clear ();
+ }
+
public void Clear () {
eventList.Clear ();
}
return null;
}
+ IEnumerator IEnumerable.GetEnumerator () {
+ return GetEnumerator ();
+ }
+
public IEnumerator GetEnumerator () {
return eventList.GetEnumerator ();
}
eventList.Remove (value);
}
+ void IList.RemoveAt (int index) {
+ RemoveAt (index);
+ }
+
public void RemoveAt (int index) {
eventList.RemoveAt (index);
}
return col;
}
+ int ICollection.Count {
+ get { return Count; }
+ }
+
public int Count {
get {
return eventList.Count;
}
}
+ int ICollection.Count {
+ get { return Count; }
+ }
+
public int Count
{
get {
this.values = values;
}
+ void ICollection.CopyTo (Array array, int index) {
+ CopyTo (array, index);
+ }
+
public void CopyTo (Array array, int index)
{
values.CopyTo (array, index);
}
+ IEnumerator IEnumerable.GetEnumerator () {
+ return GetEnumerator ();
+ }
+
public IEnumerator GetEnumerator ()
{
return values.GetEnumerator ();