- In the extension bar, click the AdBlock Plus icon
- Click the large blue toggle for this website
- Click refresh
- In the extension bar, click the AdBlock icon
- Under "Pause on this site" click "Always"
- In the extension bar, click on the Adguard icon
- Click on the large green toggle for this website
- In the extension bar, click on the Ad Remover icon
- Click "Disable on This Website"
- In the extension bar, click on the orange lion icon
- Click the toggle on the top right, shifting from "Up" to "Down"
- In the extension bar, click on the Ghostery icon
- Click the "Anti-Tracking" shield so it says "Off"
- Click the "Ad-Blocking" stop sign so it says "Off"
- Refresh the page
- In the extension bar, click on the uBlock Origin icon
- Click on the big, blue power button
- Refresh the page
- In the extension bar, click on the uBlock icon
- Click on the big, blue power button
- Refresh the page
- In the extension bar, click on the UltraBlock icon
- Check the "Disable UltraBlock" checkbox
- Please disable your Ad Blocker
- Disable any DNS blocking tools such as AdGuardDNS or NextDNS
- Disable any privacy or tracking protection extensions such as Firefox Enhanced Tracking Protection or DuckDuckGo Privacy.
If the prompt is still appearing, please disable any tools or services you are using that block internet ads (e.g. DNS Servers, tracking protection or privacy extensions).
Question
Squirrelington
ok so the exception throw is pretty self-explanitory, I could fix this with Try-Catch but I want to understand why in the hell ContainsKey is throwing an exception rather than a boolean like the documentation states. It was my understanding that the whole purpose of that function was to return false if it didn't exist in the dictionary.
I have also tried just
As I said, my expected behavior is ContainsKey() to return a boolean like the documentation states but instead I'm getting an exception ("KeyNotFoundException was unhandled by user code: The given key was not present in the dictionary.").
-- Solution was that I had legacy code still laying around with references to stuff that didn't exist anymore and had changed.
Edited by FuhrerDarqueSydeLink to comment
https://www.neowin.net/forum/topic/995280-c-concurrentdictionarycontainskey-exception/Share on other sites
1 answer to this question
Recommended Posts