110,533
社区成员
发帖
与我相关
我的任务
分享
public class Josn
{
public string name;
public double x1;
public double y1;
public double x2;
public double y2;
/// <summary>
/// 构造函数
/// </summary>
public Josn(string name, double x1, double y1, double x2, double y2)
{
this.name = name;
this.x1 = x1;
this.y1 = y1;
this.x2 = x2;
this.y2 = y2;
}
}
List<Josn> lt = new List<Josn>();
//放入字典
Dictionary<string,Dictionary<string,double[]>> temp_dic = new Dictionary<string,Dictionary<string,double[]>> ()
{
{"IBT",new Dictionary<string, double[]>(){{"a",new double[]{116.031, -4.0272}},{"b",new double[]{116.0422, -4.03194}}}},
{"IBT1",new Dictionary<string, double[]>(){{"a",new double[]{116.031, -4.0272}},{"b",new double[]{116.0422, -4.03194}}}},
{"IBT2",new Dictionary<string, double[]>(){{"a",new double[]{116.031, -4.0272}},{"b",new double[]{116.0422, -4.03194}}}},
{"IBT3",new Dictionary<string, double[]>(){{"a",new double[]{116.031, -4.0272}},{"b",new double[]{116.0422, -4.03194}}}}
};
var find_data = temp_dic["IBT"]["a"];//如此访问