Tag Archives: lookup

Make a case-insensitive dictionary in C#

The example Use a Dictionary to store and retrieve items in C# shows how to use a dictionary to store and retrieve values with keys. By default the Dictionary class is case-sensitive so the keys “Rod Stephens” and “rod stephens” … Continue reading

Posted in controls, strings | Tagged , , , , , , , , , , , , , , | 1 Comment

Use a Dictionary to store and retrieve items in C#

This example demonstrates a Dictionary. A Dictionary is basically a strongly typed Hashtable. A Hashtable stores key/value pairs in a way that makes looking up values extremely fast. For example, suppose you have an employee database that uses EmployeeId values … Continue reading

Posted in controls, strings | Tagged , , , , , , , , , , | Leave a comment