public static void Test1() { double[][] arr = new double[2][]; arr[0] = new double[2]; arr[1] = new double[2]; arr[0][0] = 666; //for (int i = 0; i < 2; i++) //{ // for (int j = 0; j < 2; j++) // { // arr[i, j] = i*2+j; // } //} Array array = arr; unsafe { var str = Newtonsoft.Json.JsonConvert.SerializeObject(array); double[,] arr2 = Newtonsoft.Json.JsonConvert.DeserializeObject<double[,]>(str); MyOGRE.GenerateQuasiRandomNumber(2, 3, ref arr2); } // // MyOGRE.MyOGREHello(); // double d = 1.051341234; //var dd= MyOGRE.GenerateInverseRandomNumber(d); }
时间: 2024-10-17 10:06:00