[Mono-bugs] [Bug 651561] New: ReflectionPropertyDescriptor.AddValueChanged doesn't use object property xxxChanged events

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Nov 4 20:12:39 EDT 2010



           Summary: ReflectionPropertyDescriptor.AddValueChanged doesn't
                    use object property xxxChanged events
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.6.x
          Platform: x86
        OS/Version: Windows 7
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.Core
        AssignedTo: jbevain at novell.com
        ReportedBy: cvolzke at live.com.au
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US)
AppleWebKit/532.5 (KHTML, like Gecko) Chrome/ Safari/532.5

should hook the PropertyChanged event below, as ms.net does.

public class Entity
    public string Property
        get { return mProperty; }
            mProperty = value;
            PropertyChanged.Raise(this, EventArgs.Empty);

    public event EventHandler PropertyChanged;

Reproducible: Always

Steps to Reproduce:
1. Create an entity class like the one above
2. Hook the changed event via the PropertyDescriptor:
3. Changed the value of Property via the object itself (not the
PropertyDescriptor.SetValue method)

Actual Results:  
The event handler is not invoked

Expected Results:  
The event handler should be invoked

Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the mono-bugs mailing list