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. Dictionary Class

Dictionary Class

Scheduled Pinned Locked Moved C#
comquestion
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.
  • M Offline
    M Offline
    MStanbrook
    wrote on last edited by
    #1

    I need some reassurance that I'm not blind... Is there no "Dictionary" class in the System.Collections namespace, but rather only the DictionaryBase class that requires you to code your own derrived class? Mike Stanbrook mstanbrook@yahoo.com

    L P 2 Replies Last reply
    0
    • M MStanbrook

      I need some reassurance that I'm not blind... Is there no "Dictionary" class in the System.Collections namespace, but rather only the DictionaryBase class that requires you to code your own derrived class? Mike Stanbrook mstanbrook@yahoo.com

      L Offline
      L Offline
      leppie
      wrote on last edited by
      #2

      You can use a hashtable like a you would an arraylist, or one of these: HybridDictionary Implements IDictionary by using a ListDictionary while the collection is small, and then switching to a Hashtable when the collection gets large. ListDictionary Implements IDictionary using a singly linked list. Recommended for collections that typically contain 10 items or less. PropertyCollection Contains the properties of a DirectoryEntry. PropertyDescriptorCollection Represents a collection of PropertyDescriptor objects. SortedList Represents a collection of key-and-value pairs that are sorted by the keys and are accessible by key and by index. Eish I must get sleep :zzz: You would swear South Afican time was GMT - 6 :eek: WebBoxes - Yet another collapsable control, but it relies on a "graphics server" for dynamic pretty rounded corners, cool arrows and unlimited font support.

      1 Reply Last reply
      0
      • M MStanbrook

        I need some reassurance that I'm not blind... Is there no "Dictionary" class in the System.Collections namespace, but rather only the DictionaryBase class that requires you to code your own derrived class? Mike Stanbrook mstanbrook@yahoo.com

        P Offline
        P Offline
        Philip Fitzsimons
        wrote on last edited by
        #3

        look in System.Collections.Specialized


        "When the only tool you have is a hammer, a sore thumb you will have."

        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