Exemplo n.º 1
0
        public static SafeFunc <T> operator -(SafeFunc <T> a, Func <T> b)
        {
            SafeFunc <T> res = new SafeFunc <T>();

            res.act = a.act - b;
            return(res);
        }
Exemplo n.º 2
0
        public static SafeFunc <T> operator +(SafeFunc <T> a, Func <T> b)
        {
            a.act -= b;
            SafeFunc <T> res = new SafeFunc <T>();

            res.act = a.act + b;

            return(res);
        }