Hashtable v.s. Dictionary

This is a discussion on Hashtable v.s. Dictionary within the C# Programming forums, part of the General Programming Boards category; Hello everyone, Any guidelines about when to use Hashtable and when to use Dictionary? I always use Dictionary. :-) thanks ...

  1. #1
    Registered User
    Join Date
    May 2006
    Posts
    1,579

    Hashtable v.s. Dictionary

    Hello everyone,


    Any guidelines about when to use Hashtable and when to use Dictionary? I always use Dictionary. :-)


    thanks in advance,
    George

  2. #2
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,139
    Use Hashtable if your .NET Version is older than .NET 2.0 or interfacing with older .NET versions, else use Dictionary.
    hth
    -nv

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. SortedDictionary v.s. Dictionary
    By George2 in forum C# Programming
    Replies: 2
    Last Post: 06-09-2008, 08:58 PM
  2. memory footprint of Dictionary
    By George2 in forum C# Programming
    Replies: 1
    Last Post: 05-17-2008, 08:39 AM
  3. Missing Entries in Hashtable
    By wuzzo87 in forum C Programming
    Replies: 3
    Last Post: 05-13-2007, 12:46 AM
  4. spell check in C using a dictionary file
    By goron350 in forum C Programming
    Replies: 10
    Last Post: 11-25-2004, 05:44 PM
  5. oh me oh my hash maps up the wazoo
    By DarkDays in forum C++ Programming
    Replies: 5
    Last Post: 11-30-2001, 11:54 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21