Author: marek
Date: 2007-06-23 17:37:08 -0400 (Sat, 23 Jun 2007)
New Revision: 80604
Modified:
trunk/mcs/class/corlib/System.Collections.Generic/ChangeLog
trunk/mcs/class/corlib/System.Collections.Generic/List.cs
Log:
2007-06-23 Marek Safar <[EMAIL PROTECTED]>
* List.cs: Make CheckMatch static.
Modified: trunk/mcs/class/corlib/System.Collections.Generic/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System.Collections.Generic/ChangeLog 2007-06-23
19:55:19 UTC (rev 80603)
+++ trunk/mcs/class/corlib/System.Collections.Generic/ChangeLog 2007-06-23
21:37:08 UTC (rev 80604)
@@ -1,13 +1,17 @@
+2007-06-23 Marek Safar <[EMAIL PROTECTED]>
+
+ * List.cs: Make CheckMatch static.
+
2007-06-20 Juraj Skripsky <[EMAIL PROTECTED]>
- * Dictionary.cs: Optimize and add implementation notes. Use a "mini-heap"
- to store the linked lists instead of the regular heap. Split arrays of
- structs into separate arrays to make the GC's life simpler (see bug 81879
- for details). Make class serialization compatible with MS.NET.
+ * Dictionary.cs: Optimize and add implementation notes. Use a
"mini-heap"
+ to store the linked lists instead of the regular heap. Split arrays of
+ structs into separate arrays to make the GC's life simpler (see bug
81879
+ for details). Make class serialization compatible with MS.NET.
- * EqualityComparer.cs: Rename IEquatableOfTEqualityComparer<T> to
- GenericEqualityComparer<T> to fix binary serialization compatibility
- with MS.
+ * EqualityComparer.cs: Rename IEquatableOfTEqualityComparer<T> to
+ GenericEqualityComparer<T> to fix binary serialization compatibility
+ with MS.
2006-04-16 Jonathan Chambers <[EMAIL PROTECTED]>
Modified: trunk/mcs/class/corlib/System.Collections.Generic/List.cs
===================================================================
--- trunk/mcs/class/corlib/System.Collections.Generic/List.cs 2007-06-23
19:55:19 UTC (rev 80603)
+++ trunk/mcs/class/corlib/System.Collections.Generic/List.cs 2007-06-23
21:37:08 UTC (rev 80604)
@@ -209,7 +209,8 @@
int i = GetIndex(0, _size, match);
return (i != -1) ? _items [i] : default (T);
}
- void CheckMatch (Predicate <T> match)
+
+ static void CheckMatch (Predicate <T> match)
{
if (match == null)
throw new ArgumentNullException ("match");
@@ -217,7 +218,7 @@
public List <T> FindAll (Predicate <T> match)
{
- this.CheckMatch (match);
+ CheckMatch (match);
if (this._size <= 0x10000) // <= 8 * 1024 * 8 (8k in
stack)
return this.FindAllStackBits (match);
else
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches