Wednesday, 4 April 2012

HashTable Example


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
namespace faculty_hashtable

{

  class Program
    {
      static void Main(string[] args)
       {
         Hashtable ht = new Hashtable();
         ht.Add("1", "Hyderabad");
         ht.Add("2", "Aptech");
         ht.Add("3", "center");
         foreach(DictionaryEntry de in ht)
       {
          Console.WriteLine(de.Key + " " + de.Value);
          //Console.WriteLine(de.Key);     

       }
          Console.ReadLine();
       }
    }
}

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...