Clear all key/value pairs in a Hashtable : Hashtable : Data Structure C# Examples


C# Examples » Data Structure » Hashtable »

 

Clear all key/value pairs in a Hashtable









    
using  System;
using  System.Collections;

class  MainClass
{
    static  void  Main(string[]  args)
    {
        Hashtable  a  =  new  Hashtable(10);
                    
        a.Add(100,  "Arrays");
        a.Add(200,  "Classes");
        
        a.Clear();
    }
}
    
   
  
   




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Data Structure
» Hashtable