Wednesday, 4 April 2012

CreateCaseInsensitive


using System;
using System.Collections;
using System.Collections.Specialized;

public class CreateCaseInsensitiveDemo
{
    public static void Main()
    {
        Hashtable ht = CollectionsUtil.CreateCaseInsensitiveHashtable();
        ht["HELLO"] = "Aptech";
        ht["hello"] = "Arena";
        Console.WriteLine(ht.Count);
        SortedList st = CollectionsUtil.CreateCaseInsensitiveSortedList();
        st["HI"] = "Aptech";
        st["hi"] = "Arena";
        Console.WriteLine(st.Count);
        Console.Read();
    }
}

No comments:

Post a Comment

CRUD operations using AngularJS in Asp.Net MVC

In this article I will show you how to perform CRUD operations in Asp.Net MVC5 using AngularJS. Add AngularJS using the Manage Nuget Pack...