Ejemplo n.º 1
0
 public IAsyncResult BeginNegation(float operand, AsyncCallback computeCallback, object state)
 {
     Func<float, float> negation = new Func<float, float>(this.Negative);
     AsyncState asyncState = new AsyncState("Negation", negation, state);
     return negation.BeginInvoke(operand,computeCallback, asyncState);
 }
Ejemplo n.º 2
0
 public IAsyncResult BeginDivision(float right, float left, AsyncCallback computeCallBack, object state)
 {
     Func<float, float, float> division = new Func<float, float, float>(this.Division);
     AsyncState asyncState = new AsyncState("Divison", division, state);
     return division.BeginInvoke(right, left, computeCallBack, asyncState);
 }
Ejemplo n.º 3
0
 public IAsyncResult BeginSubtraction(float right, float left, AsyncCallback computeCallBack, object state)
 {
     Func<float, float, float> subtraction = new Func<float, float, float>(this.Subtract);
     AsyncState asyncState = new AsyncState("Subtraction",subtraction, state);
     return subtraction.BeginInvoke(right, left, computeCallBack, asyncState);
 }
Ejemplo n.º 4
0
 public IAsyncResult BeginMultiplication(float right, float left, AsyncCallback computeCallBack, object state)
 {
     Func<float, float, float> multiplication = new Func<float, float, float>(this.Multiply);
     AsyncState asyncState = new AsyncState("Multiplication", multiplication, state);
     return multiplication.BeginInvoke(right, left, computeCallBack, asyncState);
 }
Ejemplo n.º 5
0
        //public delegate float Func<float,float,float>(float right, float left);
        //public delegate float Func<float,float>(float operand);

        public IAsyncResult BeginAdditon(float right, float left, AsyncCallback computeCallBack, object state)
        {
            Func<float,float,float> addition = new Func<float,float,float>(this.Add);
            AsyncState asyncState = new AsyncState("Addition", addition, state);
            return addition.BeginInvoke(right, left, computeCallBack, asyncState);
            
        }