Example #1
0
 public void opFloatDoubleS_async(Test.AMD_MyClass_opFloatDoubleS cb, Test.FloatS p1, Test.DoubleS p2,
                                  Ice.Current current)
 {
     Test.FloatS  p3 = p1;
     Test.DoubleS p4 = new Test.DoubleS();
     for (int i = 0; i < p2.Count; i++)
     {
         p4.Add(p2[p2.Count - (i + 1)]);
     }
     Test.DoubleS r = new Test.DoubleS();
     r.AddRange(p2);
     for (int i = 0; i < p1.Count; i++)
     {
         r.Add(p1[i]);
     }
     cb.ice_response(r, p3, p4);
 }
Example #2
0
    public void opFloatDoubleS_async(Test.AMD_MyClass_opFloatDoubleS cb, float[] p1, double[] p2,
                                     Ice.Current current)
    {
        float[] p3 = p1;

        double[] p4 = new double[p2.Length];
        for (int i = 0; i < p2.Length; i++)
        {
            p4[i] = p2[p2.Length - (i + 1)];
        }

        double[] r = new double[p2.Length + p1.Length];
        Array.Copy(p2, r, p2.Length);
        for (int i = 0; i < p1.Length; i++)
        {
            r[p2.Length + i] = (double)p1[i];
        }
        cb.ice_response(r, p3, p4);
    }