vc3/Afterthought — Issue #28: Example code not working, NotificationAmendment
Author: jasonm23
Created: 2011-11-11 00:09:55+00:00
State: open

Constructor for `NotificationAmendment` has several errors, I'm new to the Afterthought project so I can't tell what I need to fix.

Errors highlighted:

var propertyChanged = Events.Add("PropertyChanged");
// Add is not recognized

Implement( // Implement is not recognized
propertyChanged
);

Implement( // Implement is not recognized
Methods.Raise(propertyChanged, "OnPropertyChanged") // Methods is not recognized
);

Properties
.Where(p => p.PropertyInfo.CanRead && p.PropertyInfo.CanWrite && p.PropertyInfo.GetSetMethod().IsPublic)
.AfterSet(NotificationAmender.OnPropertyChanged);
// Where & PropertyInfo are not recognized