我已经尝试了一些测试,如果有所有的点击或错过也没关系.TryGetValue总是更快.什么时候应该使用ContainsKey?
.net c# dictionary
.net ×1
c# ×1
dictionary ×1