title: foreach items in hashtable
body: <p>I need to use <code>Hastable</code> (Not <code>List</code> and not <code>Dictionary</code>), and I have many variables with keys. I add keys and variables to class, and use it in my program. But I don't know how to parse <code>Hashtable</code>. I tried this:</p>
  
  <pre><code>        Hashtable toboofer = null;
  
          string path = @"my.bin";
  
          FileStream fin = File.OpenRead(path);
  
          try
          {
              BinaryFormatter bf = new BinaryFormatter();
  
              toboofer = (Hashtable)bf.Deserialize(fin);
  
              for (int i = 0; i &lt;= toboofer.Count; i++ )
                  //foreach (KeyValuePair&lt;string, string&gt; kvp in toboofer)
                  {
                      myclass cl = new myclass();
                      cl.Fio = toboofer[i].ToString();
                      cl.About = toboofer[i].ToString();
                  }
          }
  </code></pre>
  
  <p>but I have an error. When I try <code>string item</code> or cycle <code>for</code> I have an error too.</p>