Пример #1
0
 public void opFloatDoubleSS_async(Test.AMD_MyClass_opFloatDoubleSS cb, Test.FloatSS p1, Test.DoubleSS p2,
                                   Ice.Current current)
 {
     Test.FloatSS  p3 = p1;
     Test.DoubleSS p4 = new Test.DoubleSS();
     for (int i = 0; i < p2.Count; i++)
     {
         p4.Add(p2[p2.Count - (i + 1)]);
     }
     Test.DoubleSS r = new Test.DoubleSS();
     r.AddRange(p2);
     r.AddRange(p2);
     cb.ice_response(r, p3, p4);
 }
Пример #2
0
    public void opFloatDoubleSS_async(Test.AMD_MyClass_opFloatDoubleSS 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 + p2.Length][];
        Array.Copy(p2, r, p2.Length);
        for (int i = 0; i < p2.Length; i++)
        {
            r[p2.Length + i] = new double[p2[i].Length];
            for (int j = 0; j < p2[i].Length; j++)
            {
                r[p2.Length + i][j] = (double)p2[i][j];
            }
        }
        cb.ice_response(r, p3, p4);
    }