Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. About Hashtables

About Hashtables

Scheduled Pinned Locked Moved C#
question
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    John L Ponratnam
    wrote on last edited by
    #1

    I need to know what is Hashtables? and how it is used. Plz give me some examples

    Regards, LEE

    S H 2 Replies Last reply
    0
    • J John L Ponratnam

      I need to know what is Hashtables? and how it is used. Plz give me some examples

      Regards, LEE

      S Offline
      S Offline
      Spunky Coder
      wrote on last edited by
      #2

      As simple as this... http://www.google.co.in/search?num=30&hl=en&newwindow=1&q=Hashtable+%2B+C%23&btnG=Search&meta=[^]

      Koushik

      1 Reply Last reply
      0
      • J John L Ponratnam

        I need to know what is Hashtables? and how it is used. Plz give me some examples

        Regards, LEE

        H Offline
        H Offline
        Harvey Saayman
        wrote on last edited by
        #3

        A hashtable is a glorified array Instead of having an index and value you have a key and a value, so you can specify the index as "myKey" for example and get the value for it like so... myHashTable["myKey"] The other advantage is that a hashtable can grow indefinitely (until ram runs out) To iterate Though each entry in a hash table do this foreach (DictionaryEntry de in myHash) Hope it helps

        Harvey Saayman - South Africa Junior Developer .Net, C#, SQL think BIG and kick ASS

        you.suck = (you.passion != Programming)
        
        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups