2
0
Эх сурвалжийг харах

2005-06-24 Martin Baulig <[email protected]>

	* IDictionary.cs: Use the same type parameter names than on MS.

	* IDictionary.cs, Dictionary.cs: We don't need the `CLSCompliant'
	attribute here.


svn path=/trunk/mcs/; revision=46477
Martin Baulig 20 жил өмнө
parent
commit
acba2e467b

+ 7 - 0
mcs/class/corlib/System.Collections.Generic/ChangeLog

@@ -1,3 +1,10 @@
+2005-06-24  Martin Baulig  <[email protected]>
+
+	* IDictionary.cs: Use the same type parameter names than on MS.
+
+	* IDictionary.cs, Dictionary.cs: We don't need the `CLSCompliant'
+	attribute here.
+
 2005-06-23  Martin Baulig  <[email protected]>
 
 	* *.cs: Removed the `[ComVisible(false)]' attributes everywhere.

+ 0 - 1
mcs/class/corlib/System.Collections.Generic/Dictionary.cs

@@ -42,7 +42,6 @@ using System.Security.Permissions;
 namespace System.Collections.Generic {
 
 	[Serializable]
-	[CLSCompliant(true)]
 	public class Dictionary<TKey, TValue> : IDictionary<TKey, TValue>,
 		IDictionary,
 		ICollection,

+ 10 - 13
mcs/class/corlib/System.Collections.Generic/IDictionary.cs

@@ -34,21 +34,18 @@
 using System;
 using System.Runtime.InteropServices;
 
-namespace System.Collections.Generic {
-
-	[CLSCompliant(true)]
-	public interface IDictionary<K,V>
-		: ICollection<KeyValuePair<K,V>>
-		// , IEnumerable<KeyValuePair<K,V>>
+namespace System.Collections.Generic
+{
+	public interface IDictionary<TKey,TValue> : ICollection<KeyValuePair<TKey,TValue>>
 	{
 		
-		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; }
+		void Add (TKey key, TValue value);
+		bool ContainsKey (TKey key);
+		bool Remove (TKey key);
+		bool TryGetValue (TKey key, out TValue value);
+		TValue this[TKey key] { get; set; }
+		ICollection<TKey> Keys { get; }
+		ICollection<TValue> Values { get; }
 	}
 }
 #endif