Author: gert
Date: 2006-05-31 09:22:20 -0400 (Wed, 31 May 2006)
New Revision: 61324
Modified:
trunk/mcs/class/System/System.ComponentModel.Design/Changelog
trunk/mcs/class/System/System.ComponentModel.Design/DesignerCollection.cs
Log:
* DesignerCollection.cs: Added explicit interface implemenation for
ICollection.Count and IEnumerable.GetEnumerator. Fixes corcompare
warnings.
Modified: trunk/mcs/class/System/System.ComponentModel.Design/Changelog
===================================================================
--- trunk/mcs/class/System/System.ComponentModel.Design/Changelog
2006-05-31 13:20:33 UTC (rev 61323)
+++ trunk/mcs/class/System/System.ComponentModel.Design/Changelog
2006-05-31 13:22:20 UTC (rev 61324)
@@ -1,3 +1,9 @@
+2006-05-31 Gert Driesen <[EMAIL PROTECTED]>
+
+ * DesignerCollection.cs: Added explicit interface implemenation for
+ ICollection.Count and IEnumerable.GetEnumerator. Fixes corcompare
+ warnings.
+
2005-10-04 Sebastien Pouliot <[EMAIL PROTECTED]>
* DesignerTransaction.cs: Added a call to GC.SuppressFinalize in
Modified:
trunk/mcs/class/System/System.ComponentModel.Design/DesignerCollection.cs
===================================================================
--- trunk/mcs/class/System/System.ComponentModel.Design/DesignerCollection.cs
2006-05-31 13:20:33 UTC (rev 61323)
+++ trunk/mcs/class/System/System.ComponentModel.Design/DesignerCollection.cs
2006-05-31 13:22:20 UTC (rev 61324)
@@ -49,6 +49,10 @@
this.designers = new ArrayList (designers);
}
+ int ICollection.Count {
+ get { return Count; }
+ }
+
public int Count {
get { return designers.Count; }
}
@@ -57,6 +61,10 @@
get { return (IDesignerHost) designers [index]; }
}
+ IEnumerator IEnumerable.GetEnumerator () {
+ return GetEnumerator ();
+ }
+
public IEnumerator GetEnumerator()
{
return designers.GetEnumerator ();
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches