在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
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]; }
|
请发表评论