美文网首页
2021-07-02【c#】for循环遍历字典表赋值

2021-07-02【c#】for循环遍历字典表赋值

作者: 持刀的要迟到了 | 来源:发表于2021-07-02 22:46 被阅读0次

    (1条消息) C# 使用For循环遍历字典的键值对_柠檬味口香糖的博客-CSDN博客

    using System.Linq;
          //数值清零
            for (int i = 0; i < typeVal.Count; ++i)
            {
                var kv = typeVal.ElementAt(i);
                typeVal[kv.Key] = 0;
            }
    

    相关文章

      网友评论

          本文标题:2021-07-02【c#】for循环遍历字典表赋值

          本文链接:https://www.haomeiwen.com/subject/ctgyultx.html