Commit Graph
20 Commits
Author SHA1 Message Date
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
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
Ben Maurer 2cac9d1d6b eol style
svn path=/trunk/mcs/; revision=46462
2005-06-23 23:11:11 +00:00
Ben Maurer 851d9deb35 In System.Collections:
2005-06-23  Ben Maurer  <[email protected]>

	* Queue.cs: Use the enumerator rather than copy to in the
	ctor. This makes us more compat with msft, for example, when
	passing a bit array

	* Stack.cs: ditto

In Test/System.Collections:
2005-06-23  Ben Maurer  <[email protected]>

	* QueueTest.cs, StackTest.cs: Test for #75369.


svn path=/trunk/mcs/; revision=46461
2005-06-23 23:09:04 +00:00
Atsushi Eno 7bb2d5b190 2005-05-09 Atsushi Enomoto <[email protected]>
* Stack.cs : empty_stack.CopyTo(empty_array, 0) should be allowed.

	* StackTest.cs : test for CopyTo() on an empty stack.


svn path=/trunk/mcs/; revision=44253
2005-05-09 09:21:17 +00:00
Kazuki Oikawa 461a081ffb 2005-02-19 Kazuki Oikawa <[email protected]>
* SortedList.cs, Stack.cs: Reverse the order in the Equals calls.

svn path=/trunk/mcs/; revision=40905
2005-02-19 11:42:05 +00:00
Gert Driesen 7d73431646 * CaseInsensitiveComparer.cs: added TODO for serialization
* CaseInsensitiveHashCodeProvider.cs: added TODO for serialization
* SortedList.cs: added TODO for serialization
* Stack.cs: added TODO for serialization

svn path=/trunk/mcs/; revision=29626
2004-06-15 18:02:16 +00:00
Duncan Mak 13d1764537 Add license and copyright to all source files in corlib
svn path=/trunk/mcs/; revision=29249
2004-06-11 02:09:36 +00:00
Zoltan Varga efc5e28599 2003-11-10 Zoltan Varga <[email protected]>
* Stack.cs: Applied patch from Carlos A. Barcenilla to fix minor
	bugs (#50755).

svn path=/trunk/mcs/; revision=19783
2003-11-10 11:37:16 +00:00
Gonzalo Paniagua Javier ef086dd0f3 2003-08-21 Gonzalo Paniagua Javier <[email protected]>
* Stack.cs: patch by [email protected] (Joerg Rosenkranz) that fixes
	bug #47789.

svn path=/trunk/mcs/; revision=17471
2003-08-21 16:07:04 +00:00
Ben Maurer 3710444b29 2003-06-07 Ben Maurer <[email protected]>
* Stack.cs: Contains (null) works correctly. We never have the
	array sized less than 16, so that the doubling logic works no
	matter what. The enumerator is IClonable, like in ms. The
	Enumerator correctly throws an exception if Current is called
	before the enumerator is started. We now pass all the Rotor tests
	for this file!

svn path=/trunk/mcs/; revision=15179
2003-06-07 18:55:38 +00:00
Ben Maurer 54c4ccfe2c 2003-06-07 Ben Maurer <[email protected]>
* Stack.cs: Contains (null) works correctly.
	* StackTest.cs: Added test for Contains (null)

svn path=/trunk/mcs/; revision=15177
2003-06-07 17:07:25 +00:00
Gonzalo Paniagua Javier 56e8733931 2003-06-07 Gonzalo Paniagua Javier <[email protected]>
* Stack.cs: fixed Clone ().

svn path=/trunk/mcs/; revision=15175
2003-06-07 12:25:45 +00:00
Gonzalo Paniagua Javier 96b1d5d21c 2003-06-04 Gonzalo Paniagua Javier <[email protected]>
* ArrayList.cs: nullify the array in Clear ().
	* Queue.cs: nullify the array in Dequeue ().
	* Stack.cs: nullify the array in Pop ().

svn path=/trunk/mcs/; revision=15094
2003-06-04 09:01:10 +00:00
Piers Haken 2be106aaae remove obsolete IsReadOnly
svn path=/trunk/mcs/; revision=3551
2002-04-02 04:49:37 +00:00
Piers Haken 610d7923ac added missing [Serializable] attribute
svn path=/trunk/mcs/; revision=3540
2002-04-01 20:22:40 +00:00
Piers Haken 84187bf9a6 fixed member accessibility to match MS (corcompare).
svn path=/trunk/mcs/; revision=3531
2002-04-01 06:07:43 +00:00
Garrett Rooney 6ab3b5b5f8 *Stack.cs: Clone() doesn't need to check if it's synchronized, since
we override it in SyncStack anyway.

*Stack.cs: Pop() now shrinks the array if we drop below 1/4 full, to
avoid using massive amounts of memory that are not necessary.  We only
drop to half the current size, which i hope will avoid the 'ping-pong'
effect.

*Stack.cs: SyncStack.IsReadOnly should return stack.IsReadOnly
instead of just returning false, since we may have a ReadOnly wrapper
in the future (although i can't imagine why).  Thanks to David
Menestrina <[email protected]> for pointing this out.

svn path=/trunk/mcs/; revision=350
2001-07-31 12:51:28 +00:00
Miguel de Icaza 5ffbfe9aff 2001-07-18 Miguel de Icaza <[email protected]>
* IDictionary.cs (Collections): IDictionary implements ICollection
	as well.  Thanks Sergey!

svn path=/trunk/mcs/; revision=224
2001-07-18 19:49:19 +00:00
Miguel de Icaza 698c69f4f3 Add Stack.cs
svn path=/trunk/mcs/; revision=195
2001-07-17 05:45:59 +00:00