Dictionary<string, string> dict = new Dictionary<string, string>();
                list.Add("BENEFICIARY", "受益所有人");
                var res12 = string.Empty;
                var dicKey = "1000";
                dict.TryGetValue(dicKey, out res12);

                res12 = string.Empty;
                dicKey = "BENEFICIARY";
                dict.TryGetValue(dicKey, out res12);

                res12 = string.Empty;
                dicKey = "1000";
                if (dict.Keys.Contains(dicKey))
                {
                    res12 = dict[dicKey];
                }

                res12 = string.Empty;
                dicKey = "BENEFICIARY";
                if (dict.Keys.Contains(dicKey))
                {
                    res12 = dict[dicKey];
                }

                res12 = string.Empty;
                dicKey = "1000";
                if (dict.ContainsKey(dicKey))
                {
                    res12 = dict[dicKey];
                }

                res12 = string.Empty;
                dicKey = "BENEFICIARY";
                if (dict.ContainsKey(dicKey))
                {
                    res12 = dict[dicKey];
                }

 

相关文章:

  • 2022-12-23
  • 2021-06-04
  • 2022-12-23
  • 2021-11-21
  • 2022-02-25
  • 2021-08-04
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-09
  • 2022-12-23
  • 2022-01-02
相关资源
相似解决方案