How can I detect if this dictionary key exists in C#?

后端 未结 5 444
青春惊慌失措
青春惊慌失措 2020-11-30 17:51

I am working with the Exchange Web Services Managed API, with contact data. I have the following code, which is functional, but not ideal:

foreach (         


        
5条回答
  •  心在旅途
    2020-11-30 18:35

    What is the type of c.PhysicalAddresses? If it's Dictionary, then you can use the ContainsKey method.

提交回复
热议问题