如何创建包含整数作为键和数组作为值的字典。这是我在 dotnetfiddle.net 上尝试过的,但没有成功:
Dictionary<int, double[]> dict;
double[] prices = new double[20];
dict = new Dictionary<int, prices>();
Dictionary<int, double[]> dict;
dict = new Dictionary<int, new double[20]>();
Dictionary<int, double[]> dict;
dict = new Dictionary<int, double[20]>();
喵喔喔
相关分类