Hash table

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • john sutor

    #1

    Hash table

    Does anyone know why, when you remove an element from a hash table
    (hashForm.Remov e(ict)), the count does not get reduced?

    hashForm.Count


  • Nicholas Paldino [.NET/C# MVP]

    #2
    Re: Hash table

    John,

    The only reason I can imagine this happens is because the key
    represented by ict doesn't exist in the hashtable. Can you give a working
    example when it does not work?


    --
    - Nicholas Paldino [.NET/C# MVP]
    - nicholas.paldin o@exisconsultin g.com

    "john sutor" <john_sutor@cin fin.com> wrote in message
    news:uYZLtOGeDH A.2304@TK2MSFTN GP10.phx.gbl...[color=blue]
    > Does anyone know why, when you remove an element from a hash table
    > (hashForm.Remov e(ict)), the count does not get reduced?
    >
    > hashForm.Count
    >
    >[/color]


    Comment

    Working...