我有一本字典如下:
Dictionary<string, dataValues> dataDict = new Dictionary<string, dataValues>();
public struct dataValues
{
public string Value1;
public string Value2;
public string Value3;
public string Value4;
public string Value5;
public string Value6;
public string Value7;
public string Value8;
public string Value9;
public string Value10;
public string Value11;
public string Value12;
public string Value13;
public string Value14;
public string Value15;
public string Value16;
public string Value17;
public string Value18;
public string Value19;
public string Value20;
}
我希望能够通过指定字典键来遍历 dataValues 结构中的所有字符串 - 这怎么能实现?