Commit Graph
285 Commits
Author SHA1 Message Date
Marek Safar 87d6328f2f Better debugger visualization for .net 1.1 style custom collections 2013-10-10 16:09:31 +02:00
Marek Safar 4ce0e7e848 Equality structural comparer needs to do recursive comparisons. Fixes #13110 2013-07-09 11:12:33 +02:00
andreazevedo 898d9d6ccf Using existing constant instead of number literal 2013-04-26 18:49:24 -03:00
Marek Safar 173ddd23a1 Add missing file 2013-02-27 23:21:04 +01:00
Marek Safar cfe97bf3a5 Share more common code 2013-02-27 22:58:31 +01:00
Rodrigo Kumpera 1b92a4148c Since MOBILE implies NET_4_* now, take this into account and simplify our ifdefs. 2013-02-11 18:42:18 -05:00
Rodrigo Kumpera b96d05dac3 Kill the MOONLIGHT define in corlib. 2013-02-11 16:03:28 -05:00
Rodrigo Kumpera 3a26c32f1b Avoid overflow in SortedList binary search for huge instances. Fixes #4328. 2013-01-11 16:42:36 -05:00
Alan McGovern d6396791ce [corlib] Remove the DebuggerDisplay attribute from KeyValuePair and DictionaryEntry
This attribute gives us a horrible debugging experience when the
'Value' of the KeyValuePair is null. By using this attribute, the
user is told that the KeyValuePair itself is null when they inspect
something like 'new KeyValuePair<string, string> (null, null)'.
This is very confusing.

We should just let the ToString method be invoked, which returns a
nicely formatted string. This is also the behaviour observed when
debugging using Visual Studio.
2012-11-01 15:59:23 +00:00
Marek Safar 7883a2dafd Clean up some static initializers 2012-10-03 12:19:55 +01:00
Konrad M. Kruczynski f060b8055b Fix for the bug #4328. 2012-09-12 23:02:09 +02:00
Miguel de Icaza ae0feab435 Removal of NET_1_1 defines and some NET_2_0; Both defines are true these days in Mono, no versions prior to 2.0 are supported 2012-06-01 18:04:24 -04:00
Marek Safar b1683b85d3 Remove some unused code 2012-02-24 13:14:08 +00:00
Rodrigo Kumpera 8fbfb32748 Someone (me) pushed some braindead spurious changes. 2012-02-02 23:44:28 -02:00
Rodrigo Kumpera 778894bdf1 Fix linux build. 2012-02-02 23:34:52 -02:00
Rodrigo Kumpera d72794cced Reorder fields to improve object layout since the runtime can't do it for corlib types. 2011-05-23 01:13:09 -03:00
Sebastien Pouliot 314842bef5 Enable some code to be included in Moonlight's S.X.S.dll SDK assembly
* System.Collections/ArrayList.cs:
* System.Collections/Hashtable.cs:
	Do not include debugger-related attributes and some interfaces
	when compiled outside corlib

* System.Runtime.Serialization/ObjectIDGenerator.cs: Ensure this can be
compiled outside corlib (needed for ML S.X.S.dll where even internals
cannot be used)
2011-05-06 08:40:41 -04:00
Geoff Norton 83e999b7d7 Add pfx to the mobile profile 2011-01-25 01:51:17 -05:00
Marek Safar d84d7c7eb9 Remove no longer used BOOTSTRAP conditionals 2010-12-29 12:41:12 +00:00
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 0204abe803 Drop more obsolete defines
svn path=/trunk/mcs/; revision=144304
2009-10-17 01:35:27 +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
Miguel de Icaza 9afb612299 More changes to eliminate mcs warnings
svn path=/trunk/mcs/; revision=111788
2008-08-28 05:13:03 +00:00
Miguel de Icaza 60ed38d858 Expose EqualityComparer in 2.0
svn path=/trunk/mcs/; revision=111787
2008-08-28 05:05:29 +00:00
Marek Safar cc9c53a109 Warnings cleanup
svn path=/trunk/mcs/; revision=111713
2008-08-27 15:40:13 +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
Jb Evain 301984b648 merge 99630:99762
svn path=/branches/jb/ml2/mcs/; revision=99763
2008-04-03 16:15:50 +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
Jb Evain 9a70014db5 fix warnings
svn path=/branches/jb/ml2/mcs/; revision=99354
2008-03-30 17:19:27 +00:00
Jb Evain 78d5784872 add INSIDE_CORLIB
svn path=/branches/jb/ml2/mcs/; revision=99340
2008-03-30 14:54:41 +00:00
Jb Evain 4a6b0bd6e4 share folks from System.Collections in both System and System.Xml
svn path=/branches/jb/ml2/mcs/; revision=99297
2008-03-29 17:08:50 +00:00