/[dotgnu-pnet]/pnetlib/runtime/System/Collections/Hashtable.cs
ViewVC logotype

Diff of /pnetlib/runtime/System/Collections/Hashtable.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.17 by ktreichel, Mon Oct 11 06:52:16 2004 UTC revision 1.18 by drobosson, Thu Mar 3 08:11:40 2005 UTC
# Line 661  public class Hashtable : ICloneable, ICo Line 661  public class Hashtable : ICloneable, ICo
661                                  int count = capacity;                                  int count = capacity;
662                                  while(count > 0)                                  while(count > 0)
663                                  {                                  {
664                                          if(table[hash].key == null || table[hash].key == removed)                                          if( table[hash].key == null ) break; // reached end of table
665                                            if(table[hash].key != removed)
666                                          {                                          {
667                                                  break;                                                  if(KeyEquals(table[hash].key, key))
668                                          }                                                  {
669                                          else if(KeyEquals(table[hash].key, key))                                                          table[hash].key = removed;
670                                          {                                                          table[hash].value = null;
671                                                  table[hash].key = removed;                                                          --num;
672                                                  table[hash].value = null;                                                          ++generation;
673                                                  --num;                                                          break;
674                                                  ++generation;                                                  }
                                                 break;  
675                                          }                                          }
676                                          hash = (hash + 1) % capacity;                                          hash = (hash + 1) % capacity;
677                                          --count;                                          --count;

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26