Modulo the GUID in the assembly and the GUID embedded in some
field initializers that use the assembly GUID for their name, the
assemblies are idential before and after the patch.
* ReflectionPropertyDescriptor.cs: Don't cache getter and
setter properties. Cache instead the PropertyInfo objects
that defined them.
PropertyInfo::Get/SetValue is faster than calling the method
throught reflection.
svn path=/trunk/mcs/; revision=128235
2008-09-01 Rodrigo Kumpera <[email protected]>
* PropertyDescriptorTest.cs: Tests for Get/Set Value of partial
overrides of virtual properties.
In System.ComponentModel:
2008-09-01 Rodrigo Kumpera <[email protected]>
* ReflectionPropertyDescriptor.cs (SetValue, GetValue) : Lookup
the MethodInfo for accessors in parent types in case of partial
overrides of virtual properties.
svn path=/trunk/mcs/; revision=112052
* 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
* ReflectionPropertyDescriptor.cs: ReadOnlyAttribute has a Default,
so there is no need for a null reference check. Fixes the attr_ro unused
value warning during compilation.
svn path=/trunk/mcs/; revision=100000
* ReflectionPropertyDescriptor.cs: Use Attribute.GetCustomAttributes
instead of PropertyInfo.GetCustomAttributes as the latter will not
retrieve inherited attributes.
[Fixes bug #322464]
svn path=/trunk/mcs/; revision=96633
* ReflectionPropertyDescriptor.cs: For read-only properties,
ShouldSerializeValue must also check for
DesignerSerializationVisibility.Content and if present return
true.
* PropertyDescriptorTests.cs: Tests to verify the above.
svn path=/trunk/mcs/; revision=84402
ShouldSerializeValue must only take into account the return value
of the ShouldSerialize method. Code formatting.
* PropertyDescriptorTests.cs: Added test for ShouldSerializeValue
behavior with read-only properties.
svn path=/trunk/mcs/; revision=82017
* ReflectionPropertyDescriptor: fixed ShouldSerializeValue:
MSDN: If this method cannot find a DefaultValueAttribute or
a ShouldSerializeMyProperty method, it cannot create optimizations
and it returns true.
svn path=/trunk/mcs/; revision=81794
* 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