/// <summary> /// Create an observable expression from the given LINQ Expression, i.e. the expression updates its value according to model changes /// </summary> /// <typeparam name="T">The type of the expression</typeparam> /// <param name="expression">The LINQ Expression tree of the expression</param> /// <returns>A notify value</returns> public static INotifyValue <T> Expression <T>(Expression <Func <T> > expression) { var result = NotifySystem.CreateExpression <T>(expression.Body, expression.Parameters); result.Successors.SetDummy(); return(result); }
/// <summary> /// Create an observable expression from the given LINQ Expression, i.e. the expression updates its value according to model changes /// </summary> /// <typeparam name="T">The type of the expression</typeparam> /// <param name="expression">The LINQ Expression tree of the expression</param> /// <returns>A notify value</returns> public static INotifyValue <T> Expression <T>(Expression <Func <T> > expression) { return(NotifySystem.CreateExpression <T>(expression.Body, null, null)); }
public NotifyValue(Expression <Func <T> > expression, IDictionary <string, object> parameterMappings = null) : this(NotifySystem.CreateExpression <T>(expression.Body, null, parameterMappings : parameterMappings)) { }