Tech Off Thread

3 posts

Forum Read Only

This forum has been made read only by the site admins. No new threads or comments can be added.

What's a dictionary?

Back to Forum: Tech Off
  • User profile image

    Time for another: Zippy doesn't know. Tongue Out

    What's a dictionary? I mean in programming terms. I've seen it for the first time in VBscript I think and every once and awhile I see it in code samples. What's it for? Any good examples when I should use this or not use it?

  • User profile image
    Klaus Enevoldsen

    Do you mean as in a collection? If yes, then it is an indexed array where you have a key and a value. You use the key to store and retrieve the value (it is implemented as a hash table).

    System.Collections has a few different ways to implement custom Dictionaries which can be very handy, in 2.0 you can use generics to create very powerful dictionaries with little code.

  • User profile image
    Sven Groot

    This wikipedia article might help:

Conversation locked

This conversation has been locked by the site admins. No new comments can be made.