Create Hashtable using a case-insensitive code provider and a case-insensitive comparer, based on the culture of the current thread.
using System; using System.Collections; using System.Globalization; public class SamplesHashtable { public static void Main() { Hashtable myHT2 = new Hashtable( new CaseInsensitiveHashCodeProvider(), new CaseInsensitiveComparer() ); myHT2.Add("FIRST", "Hello"); myHT2.Add("SECOND", "World"); } }