Przeglądaj źródła

revert

svn path=/trunk/mcs/; revision=46459
Gonzalo Paniagua Javier 20 lat temu
rodzic
commit
064ebdf766

+ 2 - 9
mcs/class/corlib/System.Collections/BitArray.cs

@@ -228,15 +228,8 @@ namespace System.Collections {
 					barray [index + i] = getByte (i);
 				
 			} else if (array is int []) {
-				Array.Copy (_array, 0, array, index, (_length + 31) / 32);
-			} else if (array is object []) {
-				if (array.Length - index < _length)
-					 throw new ArgumentException ();
 				
-				object [] oarray = (object []) array;
-				
-				for (int i = 0; i < _length; i++)
-					oarray [index + i] = this [i];
+				Array.Copy (_array, 0, array, index, (_length + 31) / 32);
 				
 			} else {
 				throw new ArgumentException ("array", "Unsupported type");
@@ -383,4 +376,4 @@ namespace System.Collections {
 			}
 		}
 	}
-}
+}

+ 0 - 4
mcs/class/corlib/System.Collections/ChangeLog

@@ -1,7 +1,3 @@
-2005-06-23 Gonzalo Paniagua Javier <[email protected]>
-
-	* BitArray.cs: (CopyTo) support object [] as target. Fixes bug #75369.
-
 2005-06-23  Martin Baulig  <[email protected]>
 
 	* IKeyComparer.cs: Removed.