https://bugzilla.novell.com/show_bug.cgi?id=651561
https://bugzilla.novell.com/show_bug.cgi?id=651561#c0 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: [email protected] ReportedBy: [email protected] QAContact: [email protected] Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.1.249.1036 Safari/532.5 TypeDescriptor.GetProperties(typeof(Entity))["Property"].AddValueChanged(entity, Entity_PropertyChanged); should hook the PropertyChanged event below, as ms.net does. public class Entity { public string Property { get { return mProperty; } set { 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: TypeDescriptor.GetProperties(typeof(Entity))["Property"].AddValueChanged(entity, Entity_PropertyChanged); 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. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
