Commit Graph
436 Commits
Author SHA1 Message Date
Zoltan Varga 134d16fc53 2005-11-19 Zoltan Varga <[email protected]>
* TypeDescriptor.cs: Small changes to make this more compliant with
	MSDN docs and actual MS behaviour.

svn path=/trunk/mcs/; revision=53272
2005-11-19 16:34:46 +00:00
Jordi Mas i Hernandez 07d3ddb453 2005-11-07 Pedro Martinez Julia <[email protected]>
* IBindingListView.cs Initial implementation
	* HandledEventArgs.cs Initial implementation
	* HandledEventHandler.cs Initial implementation
	* ListSortDescription.cs: Initial implementation
	* ListSortDescriptionCollection.cs: Initial implementation


svn path=/trunk/mcs/; revision=52669
2005-11-07 22:53:17 +00:00
Dick Porter ac7dabd937 2005-10-31 Dick Porter <[email protected]>
* Win32Exception.cs: Add another error code.



svn path=/trunk/mcs/; revision=52414
2005-10-31 18:37:08 +00:00
Chris Toshok 4f22d834a5 2005-09-20 Chris Toshok <[email protected]>
* INotifyPropertyChanged.cs: new interface.


svn path=/trunk/mcs/; revision=50347
2005-09-21 00:39:54 +00:00
Gert Driesen 126eee6f86 * TypeConverterTests.cs: Added tests for TypeConverter.
* PropertyDescriptorCollection.cs: Added tests for PropertyDescriptorCollection.
* TypeDescriptor.cs: Remove usage of removed internal
PropertyDescriptorCollection ctor. Return read-only collection.
* PropertyDescriptorCollection.cs: Removed internal ctor taking
ArrayList. Add ctor for making read-only collection. Added
read-only checks. Implemented IsReadOnly and IsFixedSize. Empty now
returns read-only collection to match MS.NET.
* System_test.dll.sources: Added TypeConverterTest.cs and
PropertyDescriptorCollection.cs.

svn path=/trunk/mcs/; revision=50242
2005-09-19 16:52:34 +00:00
Gert Driesen 0d7cea4ba7 * TypeConverter.cs: Only return browsable properties in GetProperties.
svn path=/trunk/mcs/; revision=49939
2005-09-12 11:46:15 +00:00
Gert Driesen cdfb192c91 * DateTimeConverterTests.cs: Added tests for DateTimeConverter.
* DateTimeConverter.cs: ConvertTo must return zero-length string
for DateTime.MinValue. Use CultureInfo.GetFormat to obtain
DateTimeFormatInfo to match MS.NET.
* System_test.dll.sources: Added DateTimeConverterTests.cs.

svn path=/trunk/mcs/; revision=49013
2005-08-28 07:36:26 +00:00
Gonzalo Paniagua Javier 9bed37a8e9 2005-08-27 Gonzalo Paniagua Javier <[email protected]>
* TypeDescriptor.cs: remove double lock in DefaultConverter.


svn path=/trunk/mcs/; revision=48981
2005-08-27 18:02:52 +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
Sebastien Pouliot 7da281952c comment security attributes as CSC has trouble digesting them
svn path=/trunk/mcs/; revision=48557
2005-08-19 14:05:47 +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 12c0390838 * EditorBrowsableState.cs: Changed line ending from CRLF to LF to
match other sources. Set eol-style to native.
* ExtenderProvidedPropertyAttribute.cs: Changed line ending from CRLF
to LF to match other sources. Set eol-style to native.
* RefreshEventHandler.cs: Changed line ending from CRLF to LF to match
other sources. Set eol-style to native.
* TypeDescriptor.cs: Changed line ending from CRLF to LF to match
other sources. Set eol-style to native.

svn path=/trunk/mcs/; revision=48508
2005-08-18 16:51:40 +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
Gert Driesen cf11a15f9b * ToolboxItemAttributeTests.cs: Added tests for ToolboxItemAttribute.
* ToolboxItemAttribute.cs: Fixed GetHashCode to correspond with MS.NET.
Fixed initialization order. Throw ArgumentException if item type
cannot be loaded.
* System_test.dll.sources: Added ToolboxItemAttributeTests.cs from
System.ComponentModel.

svn path=/trunk/mcs/; revision=48427
2005-08-16 12:54:01 +00:00
Michael Hutchinson 45225f4d81 ToolboxItem-related fixes
svn path=/trunk/mcs/; revision=48209
2005-08-09 21:53:10 +00:00
Gert Driesen edd7db4891 * IComponent.cs: Fixed Designer attribute to match MS.NET.
* DesignerAttribute.cs: DesignerBaseTypeName defaults to fullname of
IDesigner to match MS.NET.

svn path=/trunk/mcs/; revision=48152
2005-08-09 09:15:37 +00:00
Miguel de Icaza df9107bf8e Further fixes from Michael
svn path=/trunk/mcs/; revision=48093
2005-08-07 22:25:18 +00:00
Miguel de Icaza 7bc67ec4e8 2005-08-07 Michael Hutchinson <[email protected]>
Patch from Michael Hutchinson to make the aspnet editor work. 
	
	* ReflectionPropertyDescriptor.cs: Create transactions and raise
	component change events for all IComponents, not just base
	implementation 'Component' derivatives.

	* MemberDescriptor.cs: Make members 'Browsable' by default, as per
	MS spec.

	* PropertyDescriptor.cs: Changed default
	DesignerSerializationVisibility value to Visible rather than
	Hidden, as per MS spec.

svn path=/trunk/mcs/; revision=48090
2005-08-07 18:32:53 +00:00
Miguel de Icaza 7aeeea3f25 Small update
svn path=/trunk/mcs/; revision=47568
2005-07-22 20:16:26 +00:00
Gonzalo Paniagua Javier 915ffe78ff 2005-07-21 Gonzalo Paniagua Javier <[email protected]>
* TypeDescriptor.cs: (GetProperties) throw exception if 'component' is
	null.


svn path=/trunk/mcs/; revision=47524
2005-07-21 18:04:41 +00:00
Sebastien Pouliot 0921872c78 2005-06-30 Sebastien Pouliot <[email protected]>
* Win32Exception.cs: Added some declarative security (permission from
	corlib) as an initial test (outside corlib). Added new constructors
	for NET_2_0.


svn path=/trunk/mcs/; revision=46779
2005-06-30 18:03:55 +00:00
Ben Maurer b27c8e1534 remove .cvsignore from everywhere, as it is useless on svn
svn path=/trunk/mcs/; revision=46564
2005-06-27 15:55:58 +00:00
Ben Maurer 0e8decdb37 remove svn:executable from .cs files
svn path=/trunk/mcs/; revision=46562
2005-06-27 15:51:40 +00:00
Lluis Sanchez 5517dda22c 2005-06-27 LLuis Sanchez Gual <[email protected]>
* CultureInfoConverter.cs: Correctly look for verbose name of
	the culture being converted.


svn path=/trunk/mcs/; revision=46556
2005-06-27 14:21:59 +00:00
Gonzalo Paniagua Javier 8a20833d7a 2005-06-08 Gonzalo Paniagua Javier <[email protected]>
* ToolboxItemAttribute.cs: fix the fix that was fixed before.


svn path=/trunk/mcs/; revision=45625
2005-06-08 08:50:55 +00:00
Zoltan Varga 29d62fc622 2005-06-08 Zoltan Varga <[email protected]>
* ToolboxItemAttribute.cs: Revert last change as it breaks the build.

svn path=/trunk/mcs/; revision=45624
2005-06-08 08:40:12 +00:00
Gonzalo Paniagua Javier a5e2241764 2005-06-08 Gonzalo Paniagua Javier <[email protected]>
* ToolboxItemAttribute.cs: fix default type name.


svn path=/trunk/mcs/; revision=45616
2005-06-08 07:41:23 +00:00
Gert Driesen c60b61668a * Win32Exception.cs: improve error message for error 10047.
svn path=/trunk/mcs/; revision=45421
2005-06-04 21:29:41 +00:00
Gert Driesen 0c548363d0 * TypeDescriptor.cs: in .NET 2.0, GetComponentName returns null if object is
not an IComponent or has no Site. In .NET 2.0, GetDefaultEvent does not 
fallback to first defined event if the default event is filtered out.
GetDefaultProperty did not take filtering into account. Fixes bug #75152.
* TypeDescriptorTests.cs: added tests for bug #75152. Fixed tests to pass on
both Mono and MS.NET.

svn path=/trunk/mcs/; revision=45414
2005-06-04 19:34:20 +00:00
Gonzalo Paniagua Javier a67985a789 2005-05-31 Gonzalo Paniagua Javier <[email protected]>
* Win32Exception.cs: add 10049 WSAEADDRNOTAVAIL. Fixes bug #75106.


svn path=/trunk/mcs/; revision=45266
2005-05-31 19:18:32 +00:00
Ben Maurer dd19011aa6 locking fixes
svn path=/trunk/mcs/; revision=45088
2005-05-26 23:18:18 +00:00
Gonzalo Paniagua Javier c871137a63 2005-05-15 Andreas Nahr <[email protected]>
* IComponent.cs: Fix attributes


svn path=/trunk/mcs/; revision=44593
2005-05-16 20:41:54 +00:00
Gonzalo Paniagua Javier 9a299f5a14 2005-04-28 Gonzalo Paniagua Javier <[email protected]>
* TypeDescriptor.cs: implemented GetEditor. Patch by Jonathan Chambers.


svn path=/trunk/mcs/; revision=43706
2005-04-28 06:22:47 +00:00
Gonzalo Paniagua Javier b4a48ad262 2005-04-25 Gonzalo Paniagua Javier <[email protected]>
* DefaultValueAttribute.cs: fixed the .ctor that takes a type and a
	string. Previous implementation caused *lots* of exceptions being thrown
	when processing WebControl types.


svn path=/trunk/mcs/; revision=43571
2005-04-26 02:24:01 +00:00
Lluis Sanchez 01fbadca43 2005-04-22 LLuis Sanchez Gual <[email protected]>
* AttributeCollection.cs: When checking if the list contains an
	attribute, always return true if that attribute is the default
	attribute for that kind of attributes.


svn path=/trunk/mcs/; revision=43438
2005-04-22 11:43:19 +00:00
Gonzalo Paniagua Javier 1d9c9e2441 Fix warnings
svn path=/trunk/mcs/; revision=43368
2005-04-21 00:47:25 +00:00
Lluis Sanchez a17e4c4f77 2005-04-13 LLuis Sanchez Gual <[email protected]>
* TypeDescriptor.cs: When creating a converter, use a constructor that
	takes a Type parameter if exists.
	* PropertyDescriptor.cs: In the Converter property, check for a
	TypeConverterAttribute in the property.


svn path=/trunk/mcs/; revision=42893
2005-04-13 08:53:39 +00:00
Jackson Harper dde7ceca57 * ReflectionEventDescriptor.cs: Bind handlers to the actual event so that
the delegates get invoked when the methods are.


svn path=/trunk/mcs/; revision=41388
2005-03-03 10:08:57 +00:00
Jackson Harper bee0840a2d * EventDescriptorCollection.cs: Handle null in the constructor properly.
svn path=/trunk/mcs/; revision=41384
2005-03-03 07:27:07 +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
Geoff Norton 5e3b04e0e8 2005-02-10 Geoff Norton <[email protected]>
* CultureInfoConverter.cs: Implement converting from the 
        string "(default)" that MS will put in .resx files.



svn path=/trunk/mcs/; revision=40451
2005-02-11 02:33:44 +00:00
Lluis Sanchez 8c994cba57 2005-02-10 Lluis Sanchez Gual <[email protected]>
* BindableAttribute.cs: Implemented 2.0 api.


svn path=/trunk/mcs/; revision=40382
2005-02-10 09:50:22 +00:00
Gonzalo Paniagua Javier 4ddbe4b253 2005-02-05 Gonzalo Paniagua Javier <[email protected]>
* Test/System.ComponentModel/TypeDescriptorTests.cs: new test for
	TypeConverter ctor that takes a Type argument.

	* System.ComponentModel/TypeDescriptor.cs: fixed bug #71601.
	GetConverter should handle TypeConverter derived classes that
	take a Type argument.


svn path=/trunk/mcs/; revision=40175
2005-02-05 18:06:52 +00:00
Lluis Sanchez 2d03f0d67d 2005-01-27 LLuis Sanchez Gual <[email protected]>
* DateTimeConverter.cs, CultureInfoConverter.cs, DecimalConverter.cs,
	TimeSpanConverter.cs, GuidConverter.cs, EnumConverter.cs: 
	Implemented support for InstanceDescriptor.

svn path=/trunk/mcs/; revision=39664
2005-01-27 22:07:20 +00:00
Lluis Sanchez 99a43738fe 2005-01-25 LLuis Sanchez Gual <[email protected]>
* Win32Exception.cs: Set the correct name for the serialized
	NativeErrorCode. This fixes bug #71572. Fix by Aleksandar Dezelin.


svn path=/trunk/mcs/; revision=39519
2005-01-25 17:53:23 +00:00
Joerg Rosenkranz 7c626eac1e 2005-01-24 Joerg Rosenkranz <[email protected]>
* TypeDescriptor.cs: Changed handling of interfaces and objects
        in GetConverter to reflect the behaviour of .NET. This fixes bug
        #71444.


svn path=/trunk/mcs/; revision=39398
2005-01-24 07:52:37 +00:00
Jonathan Pryor f6c41e758e * TypeDescriptor.cs: Fix Info.GetDefaultEvent() so that it filters events
properly.  This matches .NET 1.1 and fixes a test case.

svn path=/trunk/mcs/; revision=39201
2005-01-19 21:24:41 +00:00
Jonathan Pryor 5f85a88ada * TypeDescriptor.cs: Fix GetComponentName() so that it returns the type
name if no Site is present.  This matches .NET 1.1 and fixes a test case.

svn path=/trunk/mcs/; revision=39194
2005-01-19 20:43:10 +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
Lluis Sanchez 3be1da2a65 2005-01-10 LLuis Sanchez Gual <[email protected]>
* BindingDirection.cs: New enum.


svn path=/trunk/mcs/; revision=38616
2005-01-10 14:48:17 +00:00