* PropertyDescriptorTests.cs: add a test to see if
ShouldSerializeValue's return value affects CanResetValue.
2006-12-06 Chris Toshok <[email protected]>
In System.ComponentModel:
* ReflectionPropertyDescriptor.cs: turns out if "ShouldSerialize*"
is present and returns false, "CanReset*" also returns false.
2006-12-06 Chris Toshok <[email protected]>
svn path=/trunk/mcs/; revision=69139
* PropertyDescriptorTests.cs: add a test for ShouldSerializeValue
and CanResetValue on a class without ShouldSerialize/Reset
methods.
2006-12-06 Chris Toshok <[email protected]>
In System.ComponentModel:
* ReflectionPropertyDescriptor.cs: ShouldSerializeValue should
return false if there's no ShouldSerialize method.
2006-12-06 Chris Toshok <[email protected]>
svn path=/trunk/mcs/; revision=69138
2006-12-06 Chris Toshok <[email protected]>
* PropertyDescriptorTests.cs: flesh out these tests more with some
for ShouldSerialize and CanReset.
In System.ComponentModel:
2006-12-06 Chris Toshok <[email protected]>
* ReflectionPropertyDescriptor.cs: fixes for CanResetValue and
ShouldSerializeValue - we need to find both public and nonpublic
methods.
svn path=/trunk/mcs/; revision=69136
* MemberDescriptor.cs, ReflectionPropertyDescriptor.cs: 1) The
ReflectionPropretyDescriptor must be able to operate with non
public properties.
2) The current implementation ignores the fact that the component
can be in design mode. In design mode some of the properties (the
design-time ones) are supposed to be redirected to the
designer. The component which should be used to access the
property is retrieved by using MemberDescriptor.GetInvokee
(implemented in the patch). Updated the
ReflectorPropertyDescriptor to use GetInvokee to decide which
component should it use.
Reviewed by: Miguel de Icaza
svn path=/trunk/mcs/; revision=68728
* ReflectionPropertyDescriptor.cs,
DerivedPropertyDescriptor.cs : invoke OnValueChanged() when
the value was successfully changed. It is needed to have
MWF PropertyGrid change properties successfully.
svn path=/trunk/mcs/; revision=60601
* ReflectionPropertyDescriptor.cs (CanResetvalue): Do not
dereference a null value, avoids crash in property grid.
Code formatting police.
svn path=/trunk/mcs/; revision=59944
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
* 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