Commit Graph
117 Commits
Author SHA1 Message Date
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
Miguel de Icaza 1c19405a83 [class libraries] drop NET_1_0 definitions 2012-06-02 21:46:34 -04:00
Marek Safar 482e63b5bd Few corcompare fixes 2011-09-05 19:02:32 +01:00
Marek Habersack 0a6c794f1e [system] Part of fix for bug #683339. NameValueCollection.Add (NameValueCollection) must call the Get* overloads instead of BaseGet*
Otherwise classes wrapping NameValueCollection will not be able to intercept the Add call which leads to errors in MVC3's
FormCollection.
2011-04-01 11:55:09 +02:00
Geoff Norton dafa930953 Add some missing types to the mobile profile 2011-03-20 21:53:16 -04:00
Miguel de Icaza 48292550e8 More NET_2_0 define removal 2011-03-16 21:46:02 -04:00
Marek Habersack f0c2471465 [system] NameObjectCollections.Init clears the items container and array before reallocating them. 2010-11-18 02:21:47 +01:00
Raja R Harinath b293948fb7 EOL handling
This set of .gitattributes was automatically generated from the list of files
that GIT tried to normalize when I enabled automatic EOL conversion.

With this set of attributes, we prevent automated EOL conversion on files that
we know will cause trouble down the road.
2010-07-25 20:17:39 +05:30
Marek Safar 8df16e7575 Add missing attributes.
svn path=/trunk/mcs/; revision=147542
2009-12-03 10:33:58 +00:00
Miguel de Icaza d90afad63e 2009-11-02 Miguel de Icaza <[email protected]>
* Copy some collections from WindowsBase here for 4.0 support.

Add a handful of methods from 4.0 as well


svn path=/trunk/mcs/; revision=145180
2009-11-02 06:25:38 +00:00
Zoltan Varga 752d9d2b37 2009-03-01 Zoltan Varga <[email protected]>
* NameValueCollection.cs (AsSingleString): Avoid the allocation of
	a stringbuilder for collections with only one element.

svn path=/trunk/mcs/; revision=128295
2009-03-01 08:57:13 +00:00
Scott Thomas 144022fb14 * BitVector32.cs: Minor fixes. Simplified Section.ToString and
GetHashCode, and BitVector32.Equals.


svn path=/trunk/mcs/; revision=112633
2008-09-10 01:24:11 +00:00
Scott Thomas 4a5ecae47f Fixed bug 417833 which allowed for the creation of illegal
BitVector32.Sections. Also added a unit test for the bug.


svn path=/trunk/mcs/; revision=111591
2008-08-26 01:51:50 +00:00
Jb Evain e0e4361e63 cleanup System.ComponentModel for SL2
svn path=/trunk/mcs/; revision=109344
2008-07-31 13:49:49 +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 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
Juraj Skripsky cc663a9ef8 2008-01-07 Juraj Skripsky <[email protected]>
* NameObjectCollectionBase.cs: Add argument checking in CopyTo,
	replace use of enumerator by for-loop. Check IsReadOnly in BaseSet()
	only on the 2.0 profile.

2008-01-07  Gert Driesen  <[email protected]>

	* NameObjectCollectionBaseTest.cs: Add tests for argument checking in
	GetObjectData, Add, Clear, Remove, RemoveAt, Set and CopyTo. 


svn path=/trunk/mcs/; revision=92428
2008-01-08 06:50:05 +00:00
Atsushi Eno 851d970852 revert the regressing change.
http://mono.ximian.com/monobuild/builds/HEAD/sles-9-i586/mono/90438/logs/test-profiles.log


svn path=/trunk/mcs/; revision=90446
2007-11-29 17:26:38 +00:00
Konstantin Triger 7d2aa64ce0 fix default case-insensitive comparer for 2.0 profile
svn path=/trunk/mcs/; revision=90415
2007-11-29 08:03:45 +00:00
Miguel de Icaza 7adf3a1508 Fix infinite recursion
svn path=/trunk/mcs/; revision=84095
2007-08-14 16:26:49 +00:00
Roei Erez 778815f8b4 Fix .NET 1.1 compatability
svn path=/trunk/mcs/; revision=78008
2007-05-27 13:22:15 +00:00
Roei Erez 4114bedb60 Bug fix for NameValueCollection constructors:
** NameValueCollection(IEqualityComparer) that gets null as an argument..
** NameValueCollection(NameValueCollection).
Two test cases added.

svn path=/trunk/mcs/; revision=78007
2007-05-27 13:02:10 +00:00
Konstantin Triger fed65dfc8e refactoring for .net binary serialization compatibility: rename 'table' -> 'contents'
svn path=/trunk/mcs/; revision=76829
2007-05-07 14:52:27 +00:00
Ilya Kharmatsky 38978683b8 Proper exceptions throwing / handling under NET_2_0 target.
svn path=/trunk/mcs/; revision=76446
2007-04-29 09:08:22 +00:00
Miguel de Icaza 3abc01bc08 Indentation, style, codingstyle police
svn path=/trunk/mcs/; revision=75949
2007-04-19 14:19:04 +00:00
Konstantin Triger 01fc0f59f0 Use invariant culture for string comparing
svn path=/trunk/mcs/; revision=75914
2007-04-19 10:13:35 +00:00
Konstantin Triger 2e12366a5f Use invariant culture for string comparing
svn path=/trunk/mcs/; revision=75912
2007-04-19 09:53:54 +00:00
Marek Safar 372eb0344a 2007-04-15 Marek Safar <[email protected]>
* ListDictionary: Removed not used variable.

svn path=/trunk/mcs/; revision=75733
2007-04-15 18:27:58 +00:00
Konstantin Triger 7f1f1a0e6d use Invariant culture for string manipulations
svn path=/trunk/mcs/; revision=75436
2007-04-05 13:20:38 +00:00
Alan McGovern 0c219660e6 Should've used "or" not "and" in the inequality test.
svn path=/trunk/mcs/; revision=75017
2007-03-27 14:05:34 +00:00
Konstantin Triger f2e320226b use IEqualityComparer for key comparison
svn path=/trunk/mcs/; revision=71254
2007-01-18 12:41:05 +00:00
Miguel de Icaza d8f63090f3 Improve MonoTODOs
svn path=/trunk/mcs/; revision=68541
2006-11-27 23:24:06 +00:00
Andrew Skiba 8eef8621a8 remove unneeded out parameter
svn path=/trunk/mcs/; revision=66187
2006-10-03 13:41:00 +00:00
Gert Driesen 9027231fe9 * CollectionsUtil.cs: Set eol-style to CRLF.
* StringDictionary.cs: Fixed line endings. Set eol-style to CRLF.
* StringEnumerator.cs: Set eol-style to CRLF.
* OrderDictionary.cs: Set eol-style to CRLF.

svn path=/trunk/mcs/; revision=66172
2006-10-02 20:22:33 +00:00
Gert Driesen c5825c88a1 * OrderedDictionary.cs: IsReadOnly, indexers, Keys and Values should
not be virtual.
* SortedList.cs: Count property, indexer and Clear method should not
be virtual. Removed unnecessary explicit interface implementation of
Add (TKey, TValue) and Remove (TKey, TValue).
* Queue.cs: Marked Enumerator as Serializable.
* Stack.cs: Marked Stack <T> and Enumerator as serializable.

svn path=/trunk/mcs/; revision=66168
2006-10-02 18:35:51 +00:00
Atsushi Eno bd1da5281e 2006-04-04 Atsushi Enomoto <[email protected]>
* BitVector32.cs : oops those operators are for BitVector32.Section,
	  not BitVector32 itself.


svn path=/trunk/mcs/; revision=58997
2006-04-04 01:31:40 +00:00
Atsushi Eno 3ebe3c0d50 2006-04-04 Atsushi Enomoto <[email protected]>
* BitVector32.cs : added operator== and != in 2.0.


svn path=/trunk/mcs/; revision=58990
2006-04-04 00:38:02 +00:00
Miguel de Icaza a5bd130af9 2006-03-11 Miguel de Icaza <[email protected]>
* Uri.cs: Pragma disable warning 612 (Obsolete methods are being
	used by us internally).

	Ponder: should we instead move our methods to use new versions of
	the Obsoleted ones?

2006-03-11  Miguel de Icaza  <[email protected]>

	* CodeNamespaceImportCollection.cs: It turns out that a lot of the
	errors flagged with "!" were just missing explicit interface
	implementations.  

	Implement.

2006-03-11  Miguel de Icaza  <[email protected]>

	* CodeDomConfigurationHandler.cs: Comment out unused methods. 

	* TempFileCollection.cs: Implement explicitly some interface
	methods to get rid of the "!" errors on CorCompare.

2006-03-11  Miguel de Icaza  <[email protected]>

	* Queue.cs: Flag as serializable.

	* LinkedList.cs (OnDeserialization): Fix signature. 

	* SortedList.cs: Implement explicitly a few methods that were
	flagged by corcompare. 

2006-03-11  Miguel de Icaza  <[email protected]>

	* IOrderedDictionary.cs: Flag GetEnumerator as a "new" method to
	avoid warning.

2006-03-11  Miguel de Icaza  <[email protected]>

	* ConfigurationSettings.cs (ChangeConfigurationSettings): Make
	internal to avoid warnings.  This routine is called from
	System.Web with MethodInfo.Invoke.

2006-03-11  Miguel de Icaza  <[email protected]>

	* DeflateStream.cs: Comment out DllImport that was not being
	used. 

2006-03-11  Miguel de Icaza  <[email protected]>

	* y

	* SerialPort.cs: Remove unused variable (writeBuffer). 

	* SerialPortStream.cs (Dispose): override, not new.

2006-03-11  Miguel de Icaza  <[email protected]>

	* WebClient.cs: Only expose the right methods to avoid warnings. 

	* FtpDataStream.cs (Dispose): Fix signature.

	* FtpWebResponse.cs: Comment out keepAlive field (unused, sounds
	like we are missing features here).

	* IPAddress.cs: Move m_HashCode property to the end, and set
	pragmas to disable warnings.

2006-03-11  Miguel de Icaza  <[email protected]>

	* MailAddress.cs: Comment out unused field to remove warning. 

2006-03-11  Miguel de Icaza  <[email protected]>

	* NetworkChange.cs: Use pragmas to eliminate warnings from events
	that we do not trigger yet.

	This is a candidate for using Aaron's NetworkManager code.  But
	would make us depend on d-bus.

	* NetworkInformationException.cs: Use error_code for ErrorCode,
	instead of NativeErrorCode.   Fixes warning. 

2006-03-11  Miguel de Icaza  <[email protected]>

	* AuthenticatedStream.cs: Fixed normative parameter names (yes, we
	need to do this everywhere one day).

	(Close): actually obey the "leaveInnerStreamOpen" setting from the
	constructor. 

2006-03-11  Miguel de Icaza  <[email protected]>

	* NetworkStream.cs (Dispose): Use the right signature depending on
	the profile being built.

2006-03-11  Miguel de Icaza  <[email protected]>

	* X509Chain.cs: Flagged member as internal to avoid unused warning.

	* X500DistinguishedName.cs: Comment out unused names and move
	temporary unused variables inside the comments that were removed 



svn path=/trunk/mcs/; revision=57836
2006-03-11 19:07:56 +00:00
Sebastien Pouliot 925a5fa03e Fix compilation
svn path=/trunk/mcs/; revision=53693
2005-11-30 15:47:54 +00:00
Sebastien Pouliot 67961eee85 2005-11-30 Sebastien Pouliot <[email protected]>
* OrderedDictionary.cs: OnDeserialization is protected virtual (not 
	private).


svn path=/trunk/mcs/; revision=53690
2005-11-30 15:39:24 +00:00
Sebastien Pouliot 02406ae84c 2005-11-30 Sebastien Pouliot <[email protected]>
* BitVector32.cs: Fixed 2.0 API changes and this[int] setter under 2.0
	* HybridDictionary.cs: Fixed Contains different behaviour under 2.0.
	* IOrderedDictionary.cs: Added missing GetEnumarator to the interface.
	* NameObjectCollectionBase.cs: Fixed 2.0 API changes and 
	serialization.
	* NameValueCollection.cs: Fixed 2.0 API changes.
	* OrderedDictionary.cs: Fixed API changes, serialization and this[int]
	setter.
	* StringDictionary.cs: Added missing null checks.


svn path=/trunk/mcs/; revision=53678
2005-11-30 13:55:28 +00:00
Raja R Harinath dc7cf4d19b * HybridDictionary.cs (is_list): Remove.
(inner): Remove 'set' accessor.
(HybridDictionary, Switch): Initialize 'list' and 'hashtable' directly.

Remove one level of abstraction, where it's unnecessary.

svn path=/trunk/mcs/; revision=52238
2005-10-26 11:30:03 +00:00
Svetlana Zholkovsky dd6a565c7d Fix serialization compatibility with .NET for NameObjectCollectionBase.cs, ListDictionary.cs, HybridDictionary.cs
svn path=/trunk/mcs/; revision=52237
2005-10-26 10:47:11 +00:00
Raja R Harinath 141eee1959 * NameValueCollection.cs (Add): Add a key from the other
collection even if its associated value list is empty.
Fix regression introduced by last change.

svn path=/trunk/mcs/; revision=49257
2005-09-01 11:19:14 +00:00
Raja R Harinath 375cf03763 unify line-endings
svn path=/trunk/mcs/; revision=49255
2005-09-01 10:58:48 +00:00
Jackson Harper c71481a2f6 * NameValueCollection.cs: Don't crash when we have empty
collections.


svn path=/trunk/mcs/; revision=49149
2005-08-30 19:48:30 +00:00
Jb Evain 00e41001fb 2005-08-19 Jb Evain <[email protected]>
* NameObjectCollectionBase (GetEnumerator):
		Use the virtual modifier only in 2.0 profile.

svn path=/trunk/mcs/; revision=48579
2005-08-19 21:59:23 +00:00
Jb Evain 53997b7dfb 2005-08-19 Jb Evain <[email protected]>
* NameObjectCollectionBase (GetEnumerator):
		Remove the virtual modifier.

svn path=/trunk/mcs/; revision=48567
2005-08-19 18:29:07 +00:00
Raja R Harinath 117bb98559 * ListDictionary.cs: Rewrite to reduce key comparison overhead.
Unify all list traversals into FindEntry.
(AreEqual): Remove.
(FindEntry): Split into two duplicate loops, one when comparer ==
null, the other when it isn't.  Add new out parameter that points
to the entry preceding the result.
(Add, AddImpl, this []): Update.
(Remove): Use FindEntry for traversal.
(CopyTo): Add more tests.
(ListEntryEnumerator): Simplify.
(ListEntryCollection, ListEntryCollectionEnumerator): Likewise.

(I started out to delete AreEqual, but it ended up into an drive-by cleanup)

svn path=/trunk/mcs/; revision=47958
2005-08-03 13:48:31 +00:00
Raja R Harinath cb729da994 (Now that the compiler has started using HybridDictionary, ...)
* HybridDictionary.cs: Rewrite to avoid a test on each operation.
(list, hashtable): Remove.
(inner): New IDictionary field that can hold either a list
dictionary or a hashtable.
(is_list): New.  Notes whether 'inner' holds a list dictionary or not.
(Clear): Don't change a hashtable to a list dictionary.

svn path=/trunk/mcs/; revision=47950
2005-08-03 10:53:55 +00:00