<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://nfex.ru/index.php?action=history&amp;feed=atom&amp;title=Csharp%2FCSharp_Tutorial%2FData_Structure%2FHashtable</id>
		<title>Csharp/CSharp Tutorial/Data Structure/Hashtable - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://nfex.ru/index.php?action=history&amp;feed=atom&amp;title=Csharp%2FCSharp_Tutorial%2FData_Structure%2FHashtable"/>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/CSharp_Tutorial/Data_Structure/Hashtable&amp;action=history"/>
		<updated>2026-04-30T03:18:13Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://nfex.ru/index.php?title=Csharp/CSharp_Tutorial/Data_Structure/Hashtable&amp;diff=5585&amp;oldid=prev</id>
		<title> в 15:31, 26 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/CSharp_Tutorial/Data_Structure/Hashtable&amp;diff=5585&amp;oldid=prev"/>
				<updated>2010-05-26T15:31:53Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 15:31, 26 мая 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
			</entry>

	<entry>
		<id>http://nfex.ru/index.php?title=Csharp/CSharp_Tutorial/Data_Structure/Hashtable&amp;diff=5586&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/CSharp_Tutorial/Data_Structure/Hashtable&amp;diff=5586&amp;oldid=prev"/>
				<updated>2010-05-26T12:15:58Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Add elements to the table and Use the keys to obtain the values==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;using System; &lt;br /&gt;
using System.Collections; &lt;br /&gt;
 &lt;br /&gt;
class HashtableDemo { &lt;br /&gt;
  public static void Main() { &lt;br /&gt;
    Hashtable ht = new Hashtable(); &lt;br /&gt;
     &lt;br /&gt;
    &lt;br /&gt;
    ht.Add(&amp;quot;a&amp;quot;, &amp;quot;A&amp;quot;); &lt;br /&gt;
    ht.Add(&amp;quot;b&amp;quot;, &amp;quot;B&amp;quot;); &lt;br /&gt;
    ht.Add(&amp;quot;c&amp;quot;, &amp;quot;C&amp;quot;); &lt;br /&gt;
    ht.Add(&amp;quot;e&amp;quot;, &amp;quot;E&amp;quot;); &lt;br /&gt;
 &lt;br /&gt;
    // Get a collection of the keys. &lt;br /&gt;
    ICollection c = ht.Keys; &lt;br /&gt;
 &lt;br /&gt;
    foreach(string str in c) &lt;br /&gt;
      Console.WriteLine(str + &amp;quot;: &amp;quot; + ht[str]); &lt;br /&gt;
  } &lt;br /&gt;
}&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;pre class=codeResult&amp;gt;a: A&lt;br /&gt;
b: B&lt;br /&gt;
c: C&lt;br /&gt;
e: E&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Add key-value pair to Hashtable by using the indexer==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;using System; &lt;br /&gt;
using System.Collections; &lt;br /&gt;
 &lt;br /&gt;
class HashtableDemo { &lt;br /&gt;
  public static void Main() { &lt;br /&gt;
    Hashtable ht = new Hashtable(); &lt;br /&gt;
     &lt;br /&gt;
    &lt;br /&gt;
    ht.Add(&amp;quot;a&amp;quot;, &amp;quot;A&amp;quot;); &lt;br /&gt;
    ht.Add(&amp;quot;b&amp;quot;, &amp;quot;B&amp;quot;); &lt;br /&gt;
    ht.Add(&amp;quot;c&amp;quot;, &amp;quot;C&amp;quot;); &lt;br /&gt;
    ht.Add(&amp;quot;e&amp;quot;, &amp;quot;E&amp;quot;); &lt;br /&gt;
    &lt;br /&gt;
    ht[&amp;quot;f&amp;quot;] = &amp;quot;F&amp;quot;; &lt;br /&gt;
 &lt;br /&gt;
    // Get a collection of the keys. &lt;br /&gt;
    ICollection c = ht.Keys; &lt;br /&gt;
 &lt;br /&gt;
    foreach(string str in c) &lt;br /&gt;
      Console.WriteLine(str + &amp;quot;: &amp;quot; + ht[str]); &lt;br /&gt;
  } &lt;br /&gt;
}&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;pre class=codeResult&amp;gt;a: A&lt;br /&gt;
b: B&lt;br /&gt;
c: C&lt;br /&gt;
e: E&lt;br /&gt;
f: F&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Clear all key/value pairs in a Hashtable==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;using System;&lt;br /&gt;
using System.Collections;&lt;br /&gt;
class MainClass&lt;br /&gt;
{&lt;br /&gt;
  static void Main(string[] args)&lt;br /&gt;
  {&lt;br /&gt;
    Hashtable a = new Hashtable(10);&lt;br /&gt;
          &lt;br /&gt;
    a.Add(100, &amp;quot;Arrays&amp;quot;);&lt;br /&gt;
    a.Add(200, &amp;quot;Classes&amp;quot;);&lt;br /&gt;
    &lt;br /&gt;
    a.Clear();&lt;br /&gt;
  }&lt;br /&gt;
}&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Copy the keys from Hashtable into an array using the CopyTo() method and then display the array contents==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;using System;&lt;br /&gt;
using System.Collections;&lt;br /&gt;
class MainClass&lt;br /&gt;
{&lt;br /&gt;
  public static void Main()&lt;br /&gt;
  {&lt;br /&gt;
    Hashtable myHashtable = new Hashtable();&lt;br /&gt;
    myHashtable.Add(&amp;quot;AL&amp;quot;, &amp;quot;Alabama&amp;quot;);&lt;br /&gt;
    myHashtable.Add(&amp;quot;CA&amp;quot;, &amp;quot;California&amp;quot;);&lt;br /&gt;
    myHashtable.Add(&amp;quot;FL&amp;quot;, &amp;quot;Florida&amp;quot;);&lt;br /&gt;
    myHashtable.Add(&amp;quot;NY&amp;quot;, &amp;quot;New York&amp;quot;);&lt;br /&gt;
    myHashtable.Add(&amp;quot;WY&amp;quot;, &amp;quot;Wyoming&amp;quot;);&lt;br /&gt;
    foreach (string myKey in myHashtable.Keys)&lt;br /&gt;
    {&lt;br /&gt;
      Console.WriteLine(&amp;quot;myKey = &amp;quot; + myKey);&lt;br /&gt;
    }&lt;br /&gt;
    foreach(string myValue in myHashtable.Values)&lt;br /&gt;
    {&lt;br /&gt;
      Console.WriteLine(&amp;quot;myValue = &amp;quot; + myValue);&lt;br /&gt;
    }&lt;br /&gt;
    &lt;br /&gt;
    Console.WriteLine(&amp;quot;Copying keys to myKeys array&amp;quot;);&lt;br /&gt;
    string[] myKeys = new string[5];&lt;br /&gt;
    myHashtable.Keys.CopyTo(myKeys, 0);&lt;br /&gt;
    &lt;br /&gt;
    for (int counter = 0; counter &amp;lt; myKeys.Length; counter++) {&lt;br /&gt;
      Console.WriteLine(&amp;quot;myKeys[&amp;quot; + counter + &amp;quot;] = &amp;quot; + myKeys[counter]);&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
}&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;pre class=codeResult&amp;gt;myKey = NY&lt;br /&gt;
myKey = CA&lt;br /&gt;
myKey = FL&lt;br /&gt;
myKey = WY&lt;br /&gt;
myKey = AL&lt;br /&gt;
myValue = New York&lt;br /&gt;
myValue = California&lt;br /&gt;
myValue = Florida&lt;br /&gt;
myValue = Wyoming&lt;br /&gt;
myValue = Alabama&lt;br /&gt;
Copying keys to myKeys array&lt;br /&gt;
myKeys[0] = NY&lt;br /&gt;
myKeys[1] = CA&lt;br /&gt;
myKeys[2] = FL&lt;br /&gt;
myKeys[3] = WY&lt;br /&gt;
myKeys[4] = AL&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Copy the values from Hashtable into an array using the CopyTo() method and then display the array contents==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;using System;&lt;br /&gt;
using System.Collections;&lt;br /&gt;
class MainClass&lt;br /&gt;
{&lt;br /&gt;
  public static void Main()&lt;br /&gt;
  {&lt;br /&gt;
    Hashtable myHashtable = new Hashtable();&lt;br /&gt;
    myHashtable.Add(&amp;quot;AL&amp;quot;, &amp;quot;Alabama&amp;quot;);&lt;br /&gt;
    myHashtable.Add(&amp;quot;CA&amp;quot;, &amp;quot;California&amp;quot;);&lt;br /&gt;
    myHashtable.Add(&amp;quot;FL&amp;quot;, &amp;quot;Florida&amp;quot;);&lt;br /&gt;
    myHashtable.Add(&amp;quot;NY&amp;quot;, &amp;quot;New York&amp;quot;);&lt;br /&gt;
    myHashtable.Add(&amp;quot;WY&amp;quot;, &amp;quot;Wyoming&amp;quot;);&lt;br /&gt;
    foreach (string myKey in myHashtable.Keys)&lt;br /&gt;
    {&lt;br /&gt;
      Console.WriteLine(&amp;quot;myKey = &amp;quot; + myKey);&lt;br /&gt;
    }&lt;br /&gt;
    foreach(string myValue in myHashtable.Values)&lt;br /&gt;
    {&lt;br /&gt;
      Console.WriteLine(&amp;quot;myValue = &amp;quot; + myValue);&lt;br /&gt;
    }&lt;br /&gt;
    &lt;br /&gt;
    Console.WriteLine(&amp;quot;Copying values to myValues array&amp;quot;);&lt;br /&gt;
    string[] myValues = new string[5];&lt;br /&gt;
    myHashtable.Values.CopyTo(myValues, 0);&lt;br /&gt;
    for (int counter = 0; counter &amp;lt; myValues.Length; counter++)&lt;br /&gt;
    {&lt;br /&gt;
      Console.WriteLine(&amp;quot;myValues[&amp;quot; + counter + &amp;quot;] = &amp;quot; + myValues[counter]);&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
}&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;pre class=codeResult&amp;gt;myKey = NY&lt;br /&gt;
myKey = CA&lt;br /&gt;
myKey = FL&lt;br /&gt;
myKey = WY&lt;br /&gt;
myKey = AL&lt;br /&gt;
myValue = New York&lt;br /&gt;
myValue = California&lt;br /&gt;
myValue = Florida&lt;br /&gt;
myValue = Wyoming&lt;br /&gt;
myValue = Alabama&lt;br /&gt;
Copying values to myValues array&lt;br /&gt;
myValues[0] = New York&lt;br /&gt;
myValues[1] = California&lt;br /&gt;
myValues[2] = Florida&lt;br /&gt;
myValues[3] = Wyoming&lt;br /&gt;
myValues[4] = Alabama&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Mark a Hashtable to be Synchronized==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;using System;&lt;br /&gt;
using System.Collections;&lt;br /&gt;
class MainClass&lt;br /&gt;
{&lt;br /&gt;
  static void Main(string[] args)&lt;br /&gt;
  {&lt;br /&gt;
    Hashtable a = new Hashtable(10);&lt;br /&gt;
    Hashtable.Synchronized(a);&lt;br /&gt;
          &lt;br /&gt;
  }&lt;br /&gt;
}&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Remove key/value pairs from Hashtable==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;using System;&lt;br /&gt;
using System.Collections;&lt;br /&gt;
class MainClass&lt;br /&gt;
{&lt;br /&gt;
  static void Main(string[] args)&lt;br /&gt;
  {&lt;br /&gt;
    Hashtable a = new Hashtable(10);&lt;br /&gt;
          &lt;br /&gt;
    a.Add(100, &amp;quot;A&amp;quot;);&lt;br /&gt;
    a.Add(200, &amp;quot;C&amp;quot;);&lt;br /&gt;
    &lt;br /&gt;
    a.Remove(100);&lt;br /&gt;
    a.Remove(200);&lt;br /&gt;
  }&lt;br /&gt;
}&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Use foreach statement to loop through all keys in a hashtable==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;using System;&lt;br /&gt;
using System.Collections;&lt;br /&gt;
class MainClass&lt;br /&gt;
{&lt;br /&gt;
    public static void Main()&lt;br /&gt;
    {&lt;br /&gt;
        Hashtable    hash = new Hashtable();&lt;br /&gt;
        hash.Add(&amp;quot;A&amp;quot;, &amp;quot;1&amp;quot;);&lt;br /&gt;
        hash.Add(&amp;quot;B&amp;quot;, &amp;quot;2&amp;quot;);&lt;br /&gt;
        hash.Add(&amp;quot;C&amp;quot;, &amp;quot;3&amp;quot;);&lt;br /&gt;
        hash.Add(&amp;quot;D&amp;quot;, &amp;quot;4&amp;quot;);&lt;br /&gt;
        hash.Add(&amp;quot;E&amp;quot;, &amp;quot;5&amp;quot;);&lt;br /&gt;
        &lt;br /&gt;
        foreach (string firstName in hash.Keys)&lt;br /&gt;
        {&lt;br /&gt;
            Console.WriteLine(&amp;quot;{0} {1}&amp;quot;, firstName, hash[firstName]);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
}&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;pre class=codeResult&amp;gt;A 1&lt;br /&gt;
B 2&lt;br /&gt;
C 3&lt;br /&gt;
D 4&lt;br /&gt;
E 5&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Use the ContainsKey() method to check if Hashtable contains a key==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;using System;&lt;br /&gt;
using System.Collections;&lt;br /&gt;
class MainClass&lt;br /&gt;
{&lt;br /&gt;
  public static void Main()&lt;br /&gt;
  {&lt;br /&gt;
    Hashtable myHashtable = new Hashtable();&lt;br /&gt;
    myHashtable.Add(&amp;quot;AL&amp;quot;, &amp;quot;Alabama&amp;quot;);&lt;br /&gt;
    myHashtable.Add(&amp;quot;CA&amp;quot;, &amp;quot;California&amp;quot;);&lt;br /&gt;
    myHashtable.Add(&amp;quot;FL&amp;quot;, &amp;quot;Florida&amp;quot;);&lt;br /&gt;
    myHashtable.Add(&amp;quot;NY&amp;quot;, &amp;quot;New York&amp;quot;);&lt;br /&gt;
    myHashtable.Add(&amp;quot;WY&amp;quot;, &amp;quot;Wyoming&amp;quot;);&lt;br /&gt;
    foreach (string myKey in myHashtable.Keys)&lt;br /&gt;
    {&lt;br /&gt;
      Console.WriteLine(&amp;quot;myKey = &amp;quot; + myKey);&lt;br /&gt;
    }&lt;br /&gt;
    foreach(string myValue in myHashtable.Values)&lt;br /&gt;
    {&lt;br /&gt;
      Console.WriteLine(&amp;quot;myValue = &amp;quot; + myValue);&lt;br /&gt;
    }&lt;br /&gt;
    &lt;br /&gt;
    if (myHashtable.ContainsKey(&amp;quot;FL&amp;quot;))&lt;br /&gt;
    {&lt;br /&gt;
      Console.WriteLine(&amp;quot;myHashtable contains the key FL&amp;quot;);&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
}&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;pre class=codeResult&amp;gt;myKey = NY&lt;br /&gt;
myKey = CA&lt;br /&gt;
myKey = FL&lt;br /&gt;
myKey = WY&lt;br /&gt;
myKey = AL&lt;br /&gt;
myValue = New York&lt;br /&gt;
myValue = California&lt;br /&gt;
myValue = Florida&lt;br /&gt;
myValue = Wyoming&lt;br /&gt;
myValue = Alabama&lt;br /&gt;
myHashtable contains the key FL&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Use the ContainsValue() method to check if Hashtable contains a value==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;using System;&lt;br /&gt;
using System.Collections;&lt;br /&gt;
class MainClass&lt;br /&gt;
{&lt;br /&gt;
  public static void Main()&lt;br /&gt;
  {&lt;br /&gt;
    Hashtable myHashtable = new Hashtable();&lt;br /&gt;
    myHashtable.Add(&amp;quot;AL&amp;quot;, &amp;quot;Alabama&amp;quot;);&lt;br /&gt;
    myHashtable.Add(&amp;quot;CA&amp;quot;, &amp;quot;California&amp;quot;);&lt;br /&gt;
    myHashtable.Add(&amp;quot;FL&amp;quot;, &amp;quot;Florida&amp;quot;);&lt;br /&gt;
    myHashtable.Add(&amp;quot;NY&amp;quot;, &amp;quot;New York&amp;quot;);&lt;br /&gt;
    myHashtable.Add(&amp;quot;WY&amp;quot;, &amp;quot;Wyoming&amp;quot;);&lt;br /&gt;
    foreach (string myKey in myHashtable.Keys)&lt;br /&gt;
    {&lt;br /&gt;
      Console.WriteLine(&amp;quot;myKey = &amp;quot; + myKey);&lt;br /&gt;
    }&lt;br /&gt;
    foreach(string myValue in myHashtable.Values)&lt;br /&gt;
    {&lt;br /&gt;
      Console.WriteLine(&amp;quot;myValue = &amp;quot; + myValue);&lt;br /&gt;
    }&lt;br /&gt;
    &lt;br /&gt;
    if (myHashtable.ContainsValue(&amp;quot;Florida&amp;quot;))&lt;br /&gt;
    {&lt;br /&gt;
      Console.WriteLine(&amp;quot;myHashtable contains the value Florida&amp;quot;);&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
}&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;pre class=codeResult&amp;gt;myKey = NY&lt;br /&gt;
myKey = CA&lt;br /&gt;
myKey = FL&lt;br /&gt;
myKey = WY&lt;br /&gt;
myKey = AL&lt;br /&gt;
myValue = New York&lt;br /&gt;
myValue = California&lt;br /&gt;
myValue = Florida&lt;br /&gt;
myValue = Wyoming&lt;br /&gt;
myValue = Alabama&lt;br /&gt;
myHashtable contains the value Florida&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Use the Remove() method to remove FL from Hashtable==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;using System;&lt;br /&gt;
using System.Collections;&lt;br /&gt;
class MainClass&lt;br /&gt;
{&lt;br /&gt;
  public static void Main()&lt;br /&gt;
  {&lt;br /&gt;
    Hashtable myHashtable = new Hashtable();&lt;br /&gt;
    myHashtable.Add(&amp;quot;AL&amp;quot;, &amp;quot;Alabama&amp;quot;);&lt;br /&gt;
    myHashtable.Add(&amp;quot;CA&amp;quot;, &amp;quot;California&amp;quot;);&lt;br /&gt;
    myHashtable.Add(&amp;quot;FL&amp;quot;, &amp;quot;Florida&amp;quot;);&lt;br /&gt;
    myHashtable.Add(&amp;quot;NY&amp;quot;, &amp;quot;New York&amp;quot;);&lt;br /&gt;
    myHashtable.Add(&amp;quot;WY&amp;quot;, &amp;quot;Wyoming&amp;quot;);&lt;br /&gt;
    foreach (string myKey in myHashtable.Keys)&lt;br /&gt;
    {&lt;br /&gt;
      Console.WriteLine(&amp;quot;myKey = &amp;quot; + myKey);&lt;br /&gt;
    }&lt;br /&gt;
    foreach(string myValue in myHashtable.Values)&lt;br /&gt;
    {&lt;br /&gt;
      Console.WriteLine(&amp;quot;myValue = &amp;quot; + myValue);&lt;br /&gt;
    }&lt;br /&gt;
    &lt;br /&gt;
    Console.WriteLine(&amp;quot;Removing FL from myHashtable&amp;quot;);&lt;br /&gt;
    myHashtable.Remove(&amp;quot;FL&amp;quot;);&lt;br /&gt;
  }&lt;br /&gt;
}&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;pre class=codeResult&amp;gt;myKey = NY&lt;br /&gt;
myKey = CA&lt;br /&gt;
myKey = FL&lt;br /&gt;
myKey = WY&lt;br /&gt;
myKey = AL&lt;br /&gt;
myValue = New York&lt;br /&gt;
myValue = California&lt;br /&gt;
myValue = Florida&lt;br /&gt;
myValue = Wyoming&lt;br /&gt;
myValue = Alabama&lt;br /&gt;
Removing FL from myHashtable&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>