* MemberDescriptor.cs, PropertyDescriptor.cs,
ReflectionPropertyDescriptor.cs: Implement FillAttributes.
* MemberDescriptor.cs:
- Attributes should be checked for duplicates based on their
TypeId and not Type.
- For duplicate attributes the last one added has higher precedence.
* ReflectionPropertyDescriptor.cs: Use the property type supplied
in the ctor instead of using reflection, because this won't work if
there are more then one property with the same name.
svn path=/trunk/mcs/; revision=104696
* PropertyDescriptor.cs:
- Implement CreateInstance and GetTypeFromName
and refactor GetEditor and Converter use them.
- Drop TypeDescriptor.GetTypeFromName as we also want to check the
ComponentType assembly, which it doesn't do.
* TypeDescriptor.cs: Make GetTypeFromName private as it is no longer
used from the outside.
* PropertyDescriptorTests.cs: Add Converter tests. Based on a
patch by Andy Hume <[email protected]> under the MIT/X11
license.
* System_test.dll.sources: Add Consts.cs so that tests can use it
(e.g for specifying assembly qualified type names in attributes).
svn path=/trunk/mcs/; revision=96687
* TypeDescriptor.cs, PropertyDescriptor.cs:
Do not throw when can't find Type from string.
* ReferenceConverter.cs: Convert null value from and to string.
Return an empty StandardValueCollection.
[Part of fix for bugs #360666 and #358332]
svn path=/trunk/mcs/; revision=95874
* PropertyDescriptor.cs: When adding or removing a new handler for an
existing component, update the hashtable. In GetValueChangedHandler,
return null if component is null.
* PropertyDescriptorTests.cs: Added tests for AddValueChanged,
GetInvocationTarget, GetValueChangedHandler and RemoveValueChanged.
svn path=/trunk/mcs/; revision=89659
itself for attributes as well, not only the property type.
* TypeDescriptor.cs: Make a couple of methods internal so that
PropertyDescriptor can use them.
svn path=/trunk/mcs/; revision=81879
2006-12-19 Chris Toshok <[email protected]>
* PropertyDescriptorTests.cs: add some tests here because we were
generating an NRE for a missing type converter type. MS doesn't -
it instead falls back to the converter for the property type.
In System.ComponentModel:
2006-12-19 Chris Toshok <[email protected]>
* PropertyDescriptor.cs: stop crashing on a missing type
converter.
svn path=/trunk/mcs/; revision=69769
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
* 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
* 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