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
* 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
* 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
* 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
* 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
* Win32Exception.cs: Set the correct name for the serialized
NativeErrorCode. This fixes bug #71572. Fix by Aleksandar Dezelin.
svn path=/trunk/mcs/; revision=39519
* 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
* 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
* AttributeCollection.cs: support attributes inherited from the one
we want. Fixes bug #67088. Thanks to Sander Rijken.
svn path=/trunk/mcs/; revision=34578
* TypeDescriptor.cs: fixed ComponentInfo.GetAttributes(). Now it returns
all the attributes, not just DesignerAttribute instances. nGallery
complained.
svn path=/trunk/mcs/; revision=25919
* ReflectionPropertyDescriptor.cs: Access internal PropertyInfo through
GetPropertyInfo(). Take into account that a component may not be sited or
not have some services.
* TypeDescriptor.cs: GetTypeFromName(): Added null check for Site property.
Other minor fixes.
2004-04-16 Joerg Rosenkranz <[email protected]>
* TypeDescriptor.cs: Fixed implementation of GetConverter.
This fixes#57137.
svn path=/trunk/mcs/; revision=25616
* DesignerAttribute.cs: Fixed property TypeId.
* EventDescriptorCollection.cs: Added internal constructor. Added new
method Filter that removes events that do not have the specified
attributes.
* MemberDescriptor.cs: Minor fixes.
* PropertyDescriptor.cs: Implemented some missing methods.
* PropertyDescriptorCollection.cs: Added internal constructor. Implemented
Sort methods.
* ReferenceConverter.cs: Removed some TODOs.
* SyntaxCheck.cs: Implemented CheckMachineName and CheckPath.
* TypeDescriptor.cs: Implemented most of missing methods.
svn path=/trunk/mcs/; revision=25473
Removed unneded TODOs.
* ComponentResourceManager.cs: Implemented ApplyResources.
* EventDescriptorCollection.cs: Implemented several missing methods.
* LicFileLicenseProvider.cs: Implemented.
* MemberDescriptor.cs: Implemented some missing methods. Handle correctly
the creation of the Attribute list.
* TypeConverter.cs: Use null as default value for attribute array parameter.
svn path=/trunk/mcs/; revision=25229