C#で配列のキャスト
short[] x = new short[10]; double[] y; x.CopyTo(y,0);
だとエラー
short[] x = new short[10]; double[] y = new double[x.Length]; x.CopyTo(y,0);
だと正常.
short[] x = new short[10]; double[] y; x.CopyTo(y,0);
だとエラー
short[] x = new short[10]; double[] y = new double[x.Length]; x.CopyTo(y,0);
だと正常.