Commit Graph
213 Commits
Author SHA1 Message Date
Jérémie Laval 0d765d035d 2010-04-15 Jérémie Laval <[email protected]>
In class/System/System.Collections.Concurrent/:
   * BlockingCollection.cs:
   * ConcurrentBag.cs: Add BOOTSTRAP_NET_4_0

In class/System/System.Threading/:
   * Barrier.cs: Add BOOTSTRAP_NET_4_0

In class/corlib/System.Collections.Concurrent/:
   * ConcurrentDictionary.cs:
   * ConcurrentSkipList.cs:
   * OrderablePartitioner.cs:
   * Partitioner.cs: Add BOOTSTRAP_NET_4_0 define

In class/corlib/System.Collections/:
   * IStructuralComparable.cs:
   * IStructuralEquatable.cs: Add BOOTSTRAP_NET_4_0 define

In class/corlib/System.Threading.Tasks/:
   * Future.cs:
   * Task.cs:
   * TaskCanceledException.cs:
   * TaskContinuationOptions.cs:
   * TaskCreationOptions.cs:
   * TaskFactory.cs:
   * TaskScheduler.cs:
   * TaskStatus.cs: Add BOOTSTRAP_NET_4_0 define

In class/corlib/System.Threading/:
   * AtomicBoolean.cs:
   * CountdownEvent.cs:
   * SpinLock.cs: Add BOOTSTRAP_NET_4_0 define

In class/corlib/System/:
   * Tuple.cs:
   * Tuples.cs: Add BOOTSTRAP_NET_4_0 define

svn path=/trunk/mcs/; revision=155531
2010-04-15 19:01:26 +00:00
Sebastien Pouliot b1dfcf6b8b In System.Collections:
2010-03-19  Sebastien Pouliot  <[email protected]>

	* CollectionDebuggerView.cs: Change to internal so we can avoid
	a duplicating the type in assemblies that have [InternalsVisibleTo]

In System.Collections.Generic:
2010-03-19  Sebastien Pouliot  <[email protected]>

	* CollectionDebuggerView.cs: Change to internal so we can avoid
	a duplicating the type in assemblies that have [InternalsVisibleTo]


svn path=/trunk/mcs/; revision=153915
2010-03-19 18:54:23 +00:00
Jb Evain 116b2ee12f use MOONLIGHT symbol
svn path=/trunk/mcs/; revision=153664
2010-03-16 12:15:11 +00:00
Sebastien Pouliot 0b7db61902 In System:
2010-03-12  Sebastien Pouliot  <[email protected]>

	* Tuple.cs, Tuples.cs: Add them to NET_2_1 since they are parts
	of SL4

In System.Collections:
2010-03-12  Sebastien Pouliot  <[email protected]>

	* IStructuralComparable.cs, IStructuralEquatable.cs: Add them to
	NET_2_1 since they are parts of SL4

In System.IO:
2010-03-12  Sebastien Pouliot  <[email protected]>

	* File.cs: Enable some NET_4_0 features in NET_2_1 since they are
	part of SL4. Throw a SecurityException in Moonlight in non-debug
	builds until we're ready for elevated trust.


svn path=/trunk/mcs/; revision=153506
2010-03-12 13:11:11 +00:00
Marek Safar ac3c1111ed 2009-11-26 Marek Safar <[email protected]>
* CollectionDebuggerView.cs: Removed limit restriction.


svn path=/trunk/mcs/; revision=146992
2009-11-26 15:11:47 +00:00
Marek Safar a61f41a147 2009-10-22 Marek Safar <[email protected]>
* StructuralComparisons.cs: Implemented.

	* SortedList.cs Add nicer debug view for tools which support it.


svn path=/trunk/mcs/; revision=144616
2009-10-22 09:08:52 +00:00
Miguel de Icaza e6371e3437 2009-10-16 Miguel de Icaza <[email protected]>
* Jumbo patch to elimiante more dead code now that we have dropped
	pre-2.0 profiles.


svn path=/trunk/mcs/; revision=144303
2009-10-17 01:00:45 +00:00
Gonzalo Paniagua Javier 504df470a3 2009-09-30 Gonzalo Paniagua Javier <[email protected]>
* Hashtable.cs: MS (at least latest and greatest) does not always
	serialized the HashCodeProvider. Ignoring the error when the field
	is not found.


svn path=/trunk/mcs/; revision=143099
2009-10-01 01:40:51 +00:00
Marek Safar 410b1478f4 2009-09-24 Marek Safar <[email protected]>
* Queue.cs, DictionaryEntry.cs, Hashtable.cs,
	CollectionDebuggerView.cs, Stack.cs, ArrayList.cs: Add nicer debug
	view for tools which support it.


svn path=/trunk/mcs/; revision=142568
2009-09-24 11:15:24 +00:00
Marek Safar b9fa6f381a 2009-09-22 Marek Safar <[email protected]>
* Queue.cs, Hashtable.cs, SortedList.cs, Stack.cs, ArrayList.cs:
	Add DebuggerDisplay attribute.


svn path=/trunk/mcs/; revision=142438
2009-09-22 21:54:55 +00:00
Gonzalo Paniagua Javier b0a047f690 2009-07-14 Gonzalo Paniagua Javier <[email protected]>
* SortedList.cs: same issue as bug #521750 in System.


svn path=/trunk/mcs/; revision=137918
2009-07-15 01:07:45 +00:00
Zoltan Varga 0c8d915cd1 2009-05-22 Zoltan Varga <[email protected]>
* IStructuralComparable.cs IStructuralEquatable.cs: New files.

svn path=/trunk/mcs/; revision=134620
2009-05-22 21:28:58 +00:00
Zoltan Varga 13c7f7d4e8 2008-08-31 Zoltan Varga <[email protected]>
* BitArray.cs (CopyTo): Allow an index equal to the array length if
	the bit array has no elements. Fixes #421803.

svn path=/trunk/mcs/; revision=111994
2008-08-31 19:43:04 +00:00
Jb Evain 47b1812dcc 2008-08-05 Jb Evain <[email protected]>
* CaseInsensitiveHashCodeProvider.cs: refactor CultureInfo
	comparison to also work for SL2.


svn path=/trunk/mcs/; revision=109653
2008-08-05 09:58:07 +00:00
Jb Evain f528f0aac6 2008-08-04 Jb Evain <[email protected]>
* Hashtable.cs: cleanup internal KeyMarker type for NET_2_1.


svn path=/trunk/mcs/; revision=109557
2008-08-04 13:00:32 +00:00
Jb Evain 9bd08ef26f 2008-08-04 Jb Evain <[email protected]>
* ArrayList.cs: introduce a helper method to throw
	ArgumentOutOfRangeExceptions correctly as SL miss some
	constructors.


svn path=/trunk/mcs/; revision=109556
2008-08-04 12:52:00 +00:00
Juraj Skripsky e102585db6 2008-05-29 Juraj Skripsky <[email protected]>
* List.cs (RemoveAll, Shift): Fix leak by clearing empty array
	items.

2008-05-29  Juraj Skripsky  <[email protected]>

	* ArrayList.cs: Create the empty array only once and reuse it.


svn path=/trunk/mcs/; revision=104415
2008-05-29 15:01:15 +00:00
Jb Evain 958ff1d20e get Miguel's patch back in, without cloning the serialization info
svn path=/trunk/mcs/; revision=103996
2008-05-24 22:29:11 +00:00
Jb Evain 12d69617f9 reverting, somehow this breaks the linker
svn path=/trunk/mcs/; revision=103936
2008-05-23 17:42:19 +00:00
Miguel de Icaza a37b274a57 2008-05-23 Miguel de Icaza <[email protected]>
* Hashtable.cs: Implement a faster clone that does not use an
	enumerator to iterate over the values, this doubles the speed of
	Clone.

	The use of an internal constructor that builds from a Hashtable is
	done to avoid populating a Hashtable and then updating every field
	and structure with new data. 


svn path=/trunk/mcs/; revision=103926
2008-05-23 16:27:58 +00:00
Robert Jordan a9f497010c In System.Collections:
2008-05-08  Robert Jordan  <[email protected]>

	* DictionaryEntry.cs: Rename fields for serialization
	compatibility with MS. Accept null keys on 2.0 profile.
	Fixes #381922.

In Test/System.Collections:
2008-05-08  Robert Jordan  <[email protected]>

	* DictionaryEntryTest.cs: Add tests for key's argument validation.


svn path=/trunk/mcs/; revision=102831
2008-05-08 20:57:15 +00:00
Jb Evain 963ccb4ef8 merge back ml2 into trunk
svn path=/trunk/mcs/; revision=100557
2008-04-13 13:47:01 +00:00
Andreas N dbd5e82109 2008-04-02 Andreas Nahr <[email protected]>
* ArrayList.cs
	* DictionaryBase.cs
	* IEqualityComparer.cs
	* Queue.cs
	* SortedList.cs
	* Stack.cs: Fix parameter names

svn path=/trunk/mcs/; revision=99646
2008-04-02 17:01:36 +00:00
Gert Driesen 91a23bb998 * DictionaryBase.cs: Restore previous behavior of indexer for the
1.0 profile. On 2.0 profile, do nothing in IDictionary.Remove if
the key is not present in the hashtable. On 2.0 profile, we also need 
to add entry back to hashtable when an exception is thrown in 
OnRemoveComplete.
* DictionaryBaseTest.cs: Improved existing tests, and use Assert class
instead of deriving from deprecated Assertion class. Code formatting.

svn path=/trunk/mcs/; revision=98844
2008-03-24 07:59:16 +00:00
Sebastien Pouliot 67a0977a3e 2008-03-21 Sebastien Pouliot <[email protected]>
* DictionaryBase.cs: Fix getter on IDictionary.this to avoid two
	access to the hashtable and to behave more closely to MS 
	implementation (see new unit tests).


svn path=/trunk/mcs/; revision=98765
2008-03-21 19:03:10 +00:00
Jb Evain 232d3340e1 in System.Collections:
2007-11-06  Jb Evain  <[email protected]>

	* Hashtable.cs: Don't compare user keys against the special removed
	key. Fix #324761.

in Test/System.Collections:
2007-11-06  Jb Evain  <[email protected]>

	* HashtableTest.cs: Add test case for #324761.

svn path=/trunk/mcs/; revision=89004
2007-11-06 16:48:36 +00:00
Sebastien Pouliot abdeb6ae08 2007-11-05 Sebastien Pouliot <[email protected]>
* Queue.cs: Avoid IndexOutOfRangeException after TrimToSize. Patch by
	Benjamin Lutz. Fix #321657.


svn path=/trunk/mcs/; revision=88913
2007-11-05 20:47:05 +00:00
Zoltan Varga 7154fb99ce 2007-10-25 Zoltan Varga <[email protected]>
* Hashtable.cs: Put the hash values into a separate array to help the GC. Fixes
	#336069.

svn path=/trunk/mcs/; revision=88233
2007-10-25 21:25:23 +00:00
Robert Jordan bfb7223002 2007-10-23 Robert Jordan <[email protected]>
* SortedList.cs: Mark List|{Values|Keys} as serializable.
	Fixes #335703.


svn path=/trunk/mcs/; revision=87992
2007-10-23 15:58:17 +00:00
Zoltan Varga bdc93649bc 2007-08-25 Zoltan Varga <[email protected]>
* ArrayList.cs: Fix overflows in BinarySearch and qsort.

svn path=/trunk/mcs/; revision=84826
2007-08-24 21:35:38 +00:00
Atsushi Eno 56c9656fd4 another set of cosmetic 2.0 API fixes.
svn path=/trunk/mcs/; revision=83679
2007-08-08 16:25:59 +00:00
Juraj Skripsky c5e73857e2 2007-07-19 Juraj Skripsky <[email protected]>
* ArrayList.cs (ArrayList.Adapter): If the given list already is an
	ArrayList, just return it directly.


svn path=/trunk/mcs/; revision=82298
2007-07-19 16:18:05 +00:00
Gert Driesen 3ca0829cb5 * CaseInsensitiveHashCodeProvider.cs: Lazy init Default instance and
reconstruct it if CurrentCulture changes.
* CaseInsensitiveHashCodeProviderTest.cs: Reworked test for Default
instance to pass on both Mono and MS. Added separate tests that
verify the specific Mono and MS behavior.

svn path=/trunk/mcs/; revision=81412
2007-07-05 17:39:44 +00:00
Gert Driesen 82a943e21a * CaseInsensitiveHashCodeProvider.cs: In default ctor, do not save
TextInfo if current culture is invariant. Remoted private ctor.
In Default, always construct new instance since the current culture
may change. 
* CaseInsensitiveHashCodeProviderTest.cs: Improved test for
Default property to show the a new intance is constructed. Added test
for DefaultInvariant. Improved serialization tests. Added ctor test
for null CultureInfo. Code formatting.
* CultureInfoTest.cs: Fixed UseUserOverride tests to pass on systems
where invariant culture is default locale.

svn path=/trunk/mcs/; revision=81408
2007-07-05 16:40:03 +00:00
Ankit Jain 9c03a6bbf5 * ArrayList.cs (Shift): Clear the unused part of the array when
removing elements.

svn path=/trunk/mcs/; revision=78939
2007-06-08 11:30:38 +00:00
Marek Safar abf21fd382 2006-12-29 Marek Safar <[email protected]>
* BitArray.cs: Performance improvements.

svn path=/trunk/mcs/; revision=70200
2006-12-29 09:51:15 +00:00
Miguel de Icaza 1ded59163d Improved the MonoTODO messages, as these will be developer visible
2006-11-16  Miguel de Icaza  <[email protected]>

	* Hashtable.cs: Serialize EqualityComparer.


svn path=/trunk/mcs/; revision=67996
2006-11-16 13:33:32 +00:00
Miguel de Icaza 2da7bc41d2 2006-08-16 Miguel de Icaza <[email protected]>
* Hashtable.cs (PutImpl): Do not access the table twice, only
	once. 
	
	(TestPrime): optimize, take the sqrt out of the loop.

svn path=/trunk/mcs/; revision=64217
2006-08-22 23:51:19 +00:00
Duncan Mak 0f76af7a36 2006-08-08 Duncan Mak <[email protected]>
* ReadOnlyCollectionBase.cs (Count): Mark as virtual in
	NET_2_0. Fixes #79033.

	* ReadOnlyCollectionBaseTest.cs (TestZeroCountOnNew): Add test for
	overriding Count in NET_2_0 for #79033.

svn path=/trunk/mcs/; revision=63516
2006-08-09 04:37:51 +00:00
Atsushi Eno 35e269abc1 2006-04-26 Atsushi Enomoto <[email protected]>
* Comparer.cs : changed internal field from CultureInfo to
	  CompareInfo. This cosmetic change should fix bug #77701.


svn path=/trunk/mcs/; revision=59912
2006-04-26 08:10:14 +00:00
Marek Safar 1eba37b42f 2006-03-28 Marek Safar <[email protected]>
* Stack.cs: Changed ctor to allocate only requested memory.

svn path=/trunk/mcs/; revision=58660
2006-03-28 17:23:16 +00:00
Paolo Molaro d4d091c6e5 Tue Feb 28 14:16:25 CET 2006 Paolo Molaro <[email protected]>
* BitArray.cs: reintroduce optimization carelessly removed by
	Robitaille.


svn path=/trunk/mcs/; revision=57389
2006-02-28 13:22:44 +00:00
Lluis Sanchez 098c0cc437 2006-02-03 Sebastien Robitaille <[email protected]>
* BitArray.cs: Renamed members for interoperability with MS. 


svn path=/trunk/mcs/; revision=56946
2006-02-16 15:52:25 +00:00
Paolo Molaro a90e543b48 Tue Jan 24 18:24:00 CET 2006 Paolo Molaro <[email protected]>
* BitArray.cs: optimize bit access by removing expensive
	div/rem ops.


svn path=/trunk/mcs/; revision=55993
2006-01-24 17:24:54 +00:00
Sebastien Pouliot 28c6cae779 2006-01-04 Sebastien Pouliot <[email protected]>
* Hashtable.cs: Mark all inner classes as [Serializable] to match MS
	behaviour. Fix bug #76300.


svn path=/trunk/mcs/; revision=55081
2006-01-04 21:26:50 +00:00
Sebastien Pouliot 370b0e520c 2005-12-19 Sebastien Pouliot <[email protected]>
* ArrayList.cs: Fix default capacity under 2.0 (and unit tests under 
	MS 2.0).


svn path=/trunk/mcs/; revision=54605
2005-12-19 15:55:19 +00:00
Sebastien Pouliot e9138c550c 2005-12-07 Sebastien Pouliot <[email protected]>
* SortedList.cs: Removed check for IComparable in ctor (fixed bug 
	#76750). Removed unused private method. Added more useful info (the 
	duplicate key) to an exception.


svn path=/trunk/mcs/; revision=54065
2005-12-07 21:19:54 +00:00
Sebastien Pouliot 616cd22919 2005-12-06 Sebastien Pouliot <[email protected]>
* CaseInsensitiveHashCodeProvider: Serialization is now compatible 
	with MS. Removes the last TODO for 1.1 in this namespace :-)


svn path=/trunk/mcs/; revision=54016
2005-12-07 01:58:49 +00:00
Sebastien Pouliot d3337bbc59 2005-12-05 Sebastien Pouliot <[email protected]>
* Comparer.cs: Added GetObjectData method to implement ISerializable.


svn path=/trunk/mcs/; revision=53939
2005-12-05 18:44:17 +00:00
Miguel de Icaza 5370ce3394 2005-09-29 Miguel de Icaza <[email protected]>
* Add ComVisible(true) to all the classes that needed it.

	* Removed documentation from DictionaryBase.cs and moved it to
	Monodoc. 

	* ArrayList.cs: Fixed signature for constructor, parameter names
	are normative.

	* CollectionBase.cs: Add a couple of missing methods. 



svn path=/trunk/mcs/; revision=51018
2005-09-30 02:15:04 +00:00