Commit Graph
11 Commits
Author SHA1 Message Date
Miguel de Icaza 48292550e8 More NET_2_0 define removal 2011-03-16 21:46:02 -04:00
Atsushi Eno 41edb8afe0 2010-01-25 Atsushi Enomoto <[email protected]>
some number ConvertTo() compatibility fixes (that are reported as
!CanConvertTo()), patch by Alexandre Gomes.

svn path=/trunk/mcs/; revision=150100
2010-01-25 03:38:42 +00:00
Atsushi Eno 68694ee948 2006-04-25 Atsushi Enomoto <[email protected]>
* BaseNumberConverter.cs : (ConvertTo) regardless of InnerType,
	  it converts the argument value to InnerType using supplied format.
	  (It might be not limited to NET_2_0 but it's too cosmetic to dig
	  into the problem. At least this is for run-test-ondotnet fixes.)

	* ByteConverterTests.cs,
	  DecimalConverterTests.cs,
	  DoubleConverterTests.cs,
	  Int16ConverterTests.cs,
	  Int64ConverterTests.cs,
	  SByteConverterTests.cs,
	  SingleConverterTests.cs,
	  UInt16ConverterTests.cs,
	  UInt32ConverterTests.cs,
	  UInt64ConverterTests.cs:
	  ConvertToString() (test with custom culture) failed on .NET 2.0.
	  Fixed it by adding NumberFormat override in each test culture.


svn path=/trunk/mcs/; revision=59860
2006-04-25 16:43:57 +00:00
Gert Driesen f2289de628 * ByteConverterTests.cs: Added ConvertToString and ConvertFromString
tests with culture that has overriden GetFormat for NumberFormatInfo.
* DecimalConverterTests.cs: same.
* DoubleConverterTests.cs: same.
* Int16ConverterTests.cs: same.
* Int32ConverterTests.cs: same.
* Int64ConverterTests.cs: same.
* SByteConverterTests.cs: same.
* SingleConverterTests.cs: same.
* UInt16ConverterTests.cs: same.
* UInt32ConverterTests.cs: same.
* UInt64ConverterTests.cs: same.
* BaseNumberConverter.cs: Use CultureInfo.GetFormat to obtain
NumberFormatInfo to match MS.NET. Added ConvertToString abstract
method for conversion to string.
* ByteConverter.cs: Implemented ConvertToString.
* DecimalConverter.cs: Implemented ConvertToString.
* DoubleConverter.cs: Implemented ConvertToString.
* Int16Converter.cs: Implemented ConvertToString.
* Int32Converter.cs: Implemented ConvertToString.
* Int64Converter.cs: Implemented ConvertToString.
* SByteConverter.cs: Implemented ConvertToString.
* SingleConverter.cs: Implemented ConvertToString.
* UInt16Converter.cs: Implemented ConvertToString.
* UInt32Converter.cs: Implemented ConvertToString.
* UInt64Converter.cs: Implemented ConvertToString.

svn path=/trunk/mcs/; revision=48904
2005-08-26 20:08:40 +00:00
Gert Driesen aaf73fa6d4 * SingleConverter.cs: Implement conversion from string to match MS.NET.
Set eol-style to native.
* TypeConverter.cs: Always support conversion from InstanceDescriptor. Set
eol-style to native.
* UInt16Converter.cs: Implement conversion from string to match MS.NET.
Added support for converting string containing hex prefix. Set eol-style
to native.
* SByteConverter.cs: Implement conversion from string to match MS.NET.
Added support for converting string containing hex prefix. Set eol-style
to native.
* Int16Converter.cs: Implement conversion from string to match MS.NET.
Added support for converting string containing hex prefix. Set eol-style
to native.
* UInt64Converter.cs: Implement conversion from string to match MS.NET.
Added support for converting string containing hex prefix. Set eol-style
to native.
* DecimalConverter.cs: Implement conversion from string to match MS.NET.
Set eol-style to native.
* Int64Converter.cs: Implement conversion from string to match MS.NET.
Added support for converting string containing hex prefix. Set eol-style
to native.
* UInt32Converter.cs: Implement conversion from string to match MS.NET.
Added support for converting string containing hex prefix. Set eol-style
to native.
* Int32Converter.cs: Implement conversion from string to match MS.NET.
Added support for converting string containing hex prefix. Set eol-style
to native.
* DoubleConverter.cs: Implement conversion from string to match MS.NET. Set
eol-style to native.
* BaseNumberConverter.cs: Support conversion from string containing hex
prefixes. Set eol-style to native.
* ByteConverter.cs: Implement conversion from string to match MS.NET.
Added support for converting string containing hex prefix. Set eol-style
to native.

svn path=/trunk/mcs/; revision=48543
2005-08-19 08:04:00 +00:00
Gert Driesen 228d54377e * ByteConverterTests.cs: Added tests for ByteConverter.
* Int16ConverterTests.cs: Added tests for Int16Converter.
* Int32ConverterTests.cs: Added tests for Int32Converter.
* BaseNumberConverter.cs: In ConvertFrom, wrap all exceptions that
are thrown while converting from string in an Exception.
* System_test.dll.sources: Added ByteConverterTests.cs,
Int16ConverterTests.cs and Int32ConverterTests.cs.
* Makefile: We also need to reference System.Drawing assembly to
build test assembly.

svn path=/trunk/mcs/; revision=48428
2005-08-16 13:12:48 +00:00
Gonzalo Paniagua Javier b94fff0ad8 2005-01-12 Gonzalo Paniagua Javier <[email protected]>
* BaseNumberConverter.cs: when the culture we get is null, set it to the
	default. Fixes bug #67033. Thanks to Sander Rijken.


svn path=/trunk/mcs/; revision=38827
2005-01-12 21:43:05 +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
Andreas N 94ef21574a 2003-07-02 Andreas Nahr <[email protected]>
* AttributeCollection.cs: Fixed public members
	* BaseNumberConverter.cs: Changed InnerType to internal to match public assembly signature
	* BrowsableAttribute.cs: Removed wrong constructor, Restyle according to guidelines
	* CategoryAttribute.cs: Changed public fields to properties
	* EnumConverter.cs: Added and implemented missing properties, improved implementation
	* EventDescriptorCollection.cs: Fixed wrong signatures, added implementation, fixed potential bug
	* PropertyDescriptorCollection.cs: Fixed public members
	* ReferenceConverter.cs: Implementation added
	* SyntaxCheck.cs: Improved string checks, added MonoTODO descriptions
	* TypeDescriptor.cs: Implementations added

svn path=/trunk/mcs/; revision=15875
2003-07-02 18:26:12 +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
Miguel de Icaza 1a10984f9f Add PropertyTabScope
svn path=/trunk/mcs/; revision=8763
2002-11-02 20:29:17 +00:00