Author: gert
Date: 2006-05-31 09:20:33 -0400 (Wed, 31 May 2006)
New Revision: 61323

Modified:
   trunk/mcs/class/System/System.ComponentModel/AttributeCollection.cs
   trunk/mcs/class/System/System.ComponentModel/ChangeLog
   trunk/mcs/class/System/System.ComponentModel/Component.cs
   trunk/mcs/class/System/System.ComponentModel/EventDescriptorCollection.cs
   trunk/mcs/class/System/System.ComponentModel/PropertyDescriptorCollection.cs
   trunk/mcs/class/System/System.ComponentModel/TypeConverter.cs
Log:
* 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.


Modified: trunk/mcs/class/System/System.ComponentModel/AttributeCollection.cs
===================================================================
--- trunk/mcs/class/System/System.ComponentModel/AttributeCollection.cs 
2006-05-31 13:15:25 UTC (rev 61322)
+++ trunk/mcs/class/System/System.ComponentModel/AttributeCollection.cs 
2006-05-31 13:20:33 UTC (rev 61323)
@@ -37,7 +37,7 @@
 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);
@@ -80,6 +80,10 @@
                        attrList.CopyTo (array, index);
                }
 
+               IEnumerator IEnumerable.GetEnumerator () {
+                       return GetEnumerator ();
+               }
+
                public IEnumerator GetEnumerator ()
                {
                        return attrList.GetEnumerator ();
@@ -132,6 +136,12 @@
                        }
                }
                
+               int ICollection.Count {
+                       get {
+                               return Count;
+                       }
+               }
+
                public int Count {
                        get {
                                return attrList.Count;

Modified: trunk/mcs/class/System/System.ComponentModel/ChangeLog
===================================================================
--- trunk/mcs/class/System/System.ComponentModel/ChangeLog      2006-05-31 
13:15:25 UTC (rev 61322)
+++ trunk/mcs/class/System/System.ComponentModel/ChangeLog      2006-05-31 
13:20:33 UTC (rev 61323)
@@ -1,3 +1,16 @@
+2006-05-31  Gert Driesen  <[EMAIL PROTECTED]>
+
+       * 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  <[EMAIL PROTECTED]>
 
        * TypeDescriptor.cs : GetProperties() does not return indexers.

Modified: trunk/mcs/class/System/System.ComponentModel/Component.cs
===================================================================
--- trunk/mcs/class/System/System.ComponentModel/Component.cs   2006-05-31 
13:15:25 UTC (rev 61322)
+++ trunk/mcs/class/System/System.ComponentModel/Component.cs   2006-05-31 
13:20:33 UTC (rev 61323)
@@ -36,7 +36,6 @@
 namespace System.ComponentModel {
 
        [DesignerCategory ("Component")]
-       [TypeConverter(typeof(ComponentConverter))]
        public class Component : MarshalByRefObject, IComponent, IDisposable
        {
 

Modified: 
trunk/mcs/class/System/System.ComponentModel/EventDescriptorCollection.cs
===================================================================
--- trunk/mcs/class/System/System.ComponentModel/EventDescriptorCollection.cs   
2006-05-31 13:15:25 UTC (rev 61322)
+++ trunk/mcs/class/System/System.ComponentModel/EventDescriptorCollection.cs   
2006-05-31 13:20:33 UTC (rev 61323)
@@ -64,6 +64,10 @@
                        return eventList.Add (value);
                }
 
+               void IList.Clear () {
+                       Clear ();
+               }
+
                public void Clear () {
                        eventList.Clear ();
                }
@@ -81,6 +85,10 @@
                        return null;
                }
 
+               IEnumerator IEnumerable.GetEnumerator () {
+                       return GetEnumerator ();
+               }
+
                public IEnumerator GetEnumerator () {
                        return eventList.GetEnumerator ();
                }
@@ -97,6 +105,10 @@
                        eventList.Remove (value);
                }
 
+               void IList.RemoveAt (int index) {
+                       RemoveAt (index);
+               }
+
                public void RemoveAt (int index) {
                        eventList.RemoveAt (index);
                }
@@ -176,6 +188,10 @@
                        return col;
                }
                
+               int ICollection.Count {
+                       get { return Count; }
+               }
+
                public int Count {
                        get {
                                return eventList.Count;

Modified: 
trunk/mcs/class/System/System.ComponentModel/PropertyDescriptorCollection.cs
===================================================================
--- 
trunk/mcs/class/System/System.ComponentModel/PropertyDescriptorCollection.cs    
    2006-05-31 13:15:25 UTC (rev 61322)
+++ 
trunk/mcs/class/System/System.ComponentModel/PropertyDescriptorCollection.cs    
    2006-05-31 13:20:33 UTC (rev 61323)
@@ -334,6 +334,10 @@
                        }
                }
 
+               int ICollection.Count {
+                       get { return Count; }
+               }
+
                public int Count
                {
                        get {

Modified: trunk/mcs/class/System/System.ComponentModel/TypeConverter.cs
===================================================================
--- trunk/mcs/class/System/System.ComponentModel/TypeConverter.cs       
2006-05-31 13:15:25 UTC (rev 61322)
+++ trunk/mcs/class/System/System.ComponentModel/TypeConverter.cs       
2006-05-31 13:20:33 UTC (rev 61323)
@@ -265,11 +265,19 @@
                                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 ();

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to