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

You can use ContainsKey: if (dict.ContainsKey(key)) { … } or TryGetValue: dict.TryGetValue(key, out value); Update: according to a comment the actual class here is not an IDictionary but a PhysicalAddressDictionary, so the methods are Contains and TryGetValue but they work in the same way. Example usage: PhysicalAddressEntry entry; PhysicalAddressKey key = c.PhysicalAddresses[PhysicalAddressKey.Home].Street; if (c.PhysicalAddresses.TryGetValue(key, out … Read more

EWS – Access All Shared Calendars

By Shared Calendars do you mean the calendars under the other calendars node in Outlook ? If so these Items are NavLinks that are stored in the Common Views folder in a Mailbox which is under the NonIPMSubtree (root) see http://msdn.microsoft.com/en-us/library/ee157359(v=exchg.80).aspx. You can use EWS to get the NavLinks from a Mailbox and use the … Read more