|
For info, I just ditched RaisePropertyChanged() (without parameters).
After thinking about it, I did however add a slightly modified version of Aurima86's idea for a Set method. There are now 4 of those:
protected void Set<T>(
Expression<Func<T>> propertyExpression,
ref T field,
T newValue)
protected void Set<T>(
string propertyName,
ref T field,
T newValue)
protected void Set<T>(
Expression<Func<T>> propertyExpression,
ref T field,
T newValue,
bool broadcast)
protected void Set<T>(
string propertyName,
ref T field,
T newValue,
bool broadcast)
Corresponding snippets are also available. This will be released this week in V4 beta 1. I plan to have a blog post about that in the same timeframe.
Cheers,
Laurent
|