我有一个类,其中的字典定义为私有成员:
Dictionary<int, (string, string)> arenaIdToSetAndNumber = new Dictionary<int, (string, string)>()
{
{ 70506, ("c16", "337") },
{ 70507, ("c16", "340") },
{ 70508, ("c16", "343") },
{ 70509, ("c16", "346") },
{ 70510, ("c16", "349") },
};在调试时,我找到了与 key 相对应的项目70506,我用 2 个手表看到了这一点:
我尝试这样做var test = arenaIdToSetAndNumber[c.grpId].Item1,并将test其设置为 null与第二块手表中看到的一样!我不明白为什么
慕田峪7331174
凤凰求蛊
相关分类