Solved

Collections that do not throw KeyNotFoundException

Posted on 2013-06-17
1
203 Views
Last Modified: 2013-06-21
According to my MCTS 70-536 Pretest Exam the StringDictionary collection does not return KeyNotFoundExcepption when a lookup is performed.  It only returns null. Does anyone know what other Dictionary collections perform in this manner?
0
Comment
Question by:metro156
1 Comment
 
LVL 42

Accepted Solution

by:
sedgwick earned 500 total points
ID: 39255813
HybridDictionary,NameValueCollection, OrderedDictionary etc
check System.Collections.Specialized Namespace:
http://msdn.microsoft.com/en-us/library/system.collections.specialized.aspx
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
VB.Net WebRequest Code from JSON curl 7 84
Need a simple RegEx to search for two words 27 77
Graph API & MS Apps 1 52
PowerShell:  Where-Object not working as a filter 2 70
For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

680 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question