System.Collections.Generic.Dictionary<test ,string > dic=new Dictionary<test,string> ();
            test djj = new test();
            dic.Add(djj,"wyl");
            List<test> list = new List<test>();
            list.AddRange(dic.Keys);
            list[0].name = "djj2";
            foreach (test t in list)
            {
                dic[t] = "wyl2";
            }
            Console.WriteLine(dic[list[0]]);

相关文章:

  • 2022-12-23
  • 2022-02-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-27
  • 2021-07-21
  • 2021-05-21
猜你喜欢
  • 2021-07-29
  • 2022-12-23
  • 2022-12-23
  • 2021-10-09
相关资源
相似解决方案