Commit Graph
8 Commits
Author SHA1 Message Date
Sebastien Pouliot 811d8073e7 2008-05-19 Sebastien Pouliot <[email protected]>
* CharConverter.cs,
	* DateTimeConverter.cs,
	* GuidConverter.cs,
	* TimeSpanConverter.cs: Avoid unboxing structs more than one time.
	[Found using Gendarme]


svn path=/trunk/mcs/; revision=103540
2008-05-20 01:24:26 +00:00
Gert Driesen 15d9f261e9 * CharConverter.cs: Use trimmed value in FormatException.
* CharConverterTest.cs: Fixed test to pass on MS.
* PropertyDescriptorTest.cs: Added test for Attributes.

svn path=/trunk/mcs/; revision=96683
2008-02-26 19:27:46 +00:00
Gert Driesen 21d318379c * CharConverterTest.cs: Added tests for ConvertFrom and ConvertTo.
* CultureInfoConverterTest.cs: Added tests for ConvertFrom and
ConvertTo.
* CharConverter.cs (ConvertFrom): Avoid NRE when value is null.
Provide more info when left of value > 1.
* CultureInfoConverter.cs (ConvertFrom): Avoid NRE when value is null.
On 2.0 profile, use case-sensitive comparison for (Default) value.
Use case-insensitive comparing when value is considered as displayname.
Provide more info in exception message.
(ConvertTo): Use '(Default)' instead of '(default)' for invariant
culture.
* System_test.dll.sources: Added CharConverterTest.cs and
CultureInfoConverterTest.cs.

svn path=/trunk/mcs/; revision=95995
2008-02-17 19:08:47 +00:00
Ivan Zlatev 5c4ba113af 2008-02-16 Ivan N. Zlatev <[email protected]>
* CharConverter.cs: 
	 - Handle \0 char.
	 - Trim the ConvertFrom string
	 - Handle null string in ConvertFrom as \0 char.
	 [Fixes bug #362112]


svn path=/trunk/mcs/; revision=95930
2008-02-16 21:54:53 +00:00
Geoff Norton aee2911d4d * CharConverter.cs: Implement the ability to convert from ""
svn path=/trunk/mcs/; revision=40567
2005-02-12 23:21:45 +00:00
Duncan Mak 24f5ef2c44 Add MIT license to System.dll
svn path=/trunk/mcs/; revision=30054
2004-06-21 18:02:11 +00:00
Gonzalo Paniagua Javier 33d2a980d3 implementation and fixes by Andreas Nahr.
svn path=/trunk/mcs/; revision=15582
2003-06-23 16:31:41 +00:00
Martin Willemoes Hansen 2076fb1c67 * Stubed rest of System.ComponentModel
svn path=/trunk/mcs/; revision=12967
2003-03-31 11:52:28 +00:00