2017.9.27 Dictionary、GetMeDicInOtherObjectById和冷知识
分享人:姜葳1.Dictionary后台将要显示的内容处理好并放入字典,前台可直接调用,减少访问数据库的次数。ContainsKey判断字典是否包含关键字publicDictionarycycleUsed=newDictionary();if(!cycleUsed.ContainsKey(cycle.EPL_PartId)){cycleUsed.Add(cycle.EPL_PartId,newdo