Author: zoltan
Date: 2005-05-26 09:36:03 -0400 (Thu, 26 May 2005)
New Revision: 45045
Modified:
trunk/mcs/class/corlib/System.Collections.Generic/ChangeLog
trunk/mcs/class/corlib/System.Collections.Generic/Dictionary.cs
trunk/mcs/class/corlib/System.Collections.Generic/IDictionary.cs
Log:
2005-05-26 Zoltan Varga <[EMAIL PROTECTED]>
* Dictionary.cs: Fix a warning.
* IDictionary.cs: Add missing TryGetValue method.
Modified: trunk/mcs/class/corlib/System.Collections.Generic/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System.Collections.Generic/ChangeLog 2005-05-26
13:18:46 UTC (rev 45044)
+++ trunk/mcs/class/corlib/System.Collections.Generic/ChangeLog 2005-05-26
13:36:03 UTC (rev 45045)
@@ -1,3 +1,9 @@
+2005-05-26 Zoltan Varga <[EMAIL PROTECTED]>
+
+ * Dictionary.cs: Fix a warning.
+
+ * IDictionary.cs: Add missing TryGetValue method.
+
2005-05-19 Geoff Norton <[EMAIL PROTECTED]>
* List.cs (Insert): Resize the array before the shift if needed
Modified: trunk/mcs/class/corlib/System.Collections.Generic/Dictionary.cs
===================================================================
--- trunk/mcs/class/corlib/System.Collections.Generic/Dictionary.cs
2005-05-26 13:18:46 UTC (rev 45044)
+++ trunk/mcs/class/corlib/System.Collections.Generic/Dictionary.cs
2005-05-26 13:36:03 UTC (rev 45045)
@@ -227,7 +227,7 @@
protected virtual int GetHash (K key)
{
- IComparer<K> hcp = this._hcp;
+ //IComparer<K> hcp = this._hcp;
return key.GetHashCode ();
/*
Modified: trunk/mcs/class/corlib/System.Collections.Generic/IDictionary.cs
===================================================================
--- trunk/mcs/class/corlib/System.Collections.Generic/IDictionary.cs
2005-05-26 13:18:46 UTC (rev 45044)
+++ trunk/mcs/class/corlib/System.Collections.Generic/IDictionary.cs
2005-05-26 13:36:03 UTC (rev 45045)
@@ -41,6 +41,7 @@
void Add (K key, V value);
bool ContainsKey (K key);
bool Remove (K key);
+ bool TryGetValue (K key, out V value);
V this[K key] { get; set; }
ICollection<K> Keys { get; }
ICollection<V> Values { get; }
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches