Reader Level:

How to find a value of a SortedDictionary with C#

By Dinesh Beniwal on Jul 11, 2012
In this article we are discussing about how to find a value of a Sorted Dictionary in C#.

Find a Value

The ContainsValue method checks if a value is already exists in the SortedDictionary. The following code snippet checks if a value is already exits. 

if (!AuthorList.ContainsValue(9))


    Console.WriteLine("Item found");


Learn more:

Working with SortedDictionary using C#

Dinesh Beniwal
Dinesh Beniwal

I am working as VP Content Manager, responsible for content publishing, content development, and social relations. You can follow me on twitter @dbeniwal21



Spire.Doc - Free .NET Word API
Use Spire.Doc to create, read, write, print, and convert word documents to OpenXML, RTF, TXT, XPS, EPUB, EMF, HTML, Image and PDF.
Infragistics jQuery Controls

Trending up