Exemplo n.º 1
0
        public ObservableMethodLensProxyCall(MethodCallExpression node, ObservableExpressionBinder binder, MethodInfo proxyMethod) : base(node, binder, proxyMethod)
        {
            var lensPutAttribute = node.Method.GetCustomAttribute(typeof(LensPutAttribute)) as LensPutAttribute;

            LensPut = LensPut <T, TResult> .FromLensPutAttribute(lensPutAttribute, node.Method, Target as INotifyReversableValue <T>);
        }
Exemplo n.º 2
0
 public ObservableLensPutProxy(INotifyReversableValue <TBase> target, INotifyExpression <T> inner, LensPutAttribute lensAttribute, MethodInfo method)
 {
     this.inner = inner;
     this.lens  = LensPut <TBase, T> .FromLensPutAttribute(lensAttribute, method, target);
 }
Exemplo n.º 3
0
        public ObservableStaticLensMethodCall(MethodCallExpression node, ObservableExpressionBinder binder) : base(node, binder)
        {
            var lensPutAttribute = node.Method.GetCustomAttribute(typeof(LensPutAttribute)) as LensPutAttribute;

            LensPut = LensPut <T1, TResult> .FromLensPutAttribute(lensPutAttribute, node.Method, Argument1 as INotifyReversableValue <T1>);
        }