我们有一个哈希表作为对如下值列表的只读引用:
internal static readonly Hashtable relationcodeAcodeB = new Hashtable
{
{"149", "23"},
{"139", "17"}
}
现在我们需要一个可以容纳 3 个值(列)并通过其他 2 个值快速查找值的结构。
像这样的东西:
internal static readonly Hashtable relationcodeAcodeBcodeC = new Hashtable
{
{"149", "23", "xx"},
{"139", "17", "xxx"}
}
string codeB=relationcodeAcodeBcodeC[codeA="149"]["codeB"];