Community discussion forum

create a 2-dimensional array in c#

  • 10 months ago
    Dear All I wish to create a 2 dimensional array in c#, to store an ID and also another integer corresponding to this ID. Can you please advise me how I can do this please. Thanks Johann
    Post was edited on 12/01/2009 22:39:16 Report abuse
  • 10 months ago
    Hi, That doesn't sound like a mutli-dimensional array, more like an associative array. If it was one ID with one Integer, then i would look at a generic.dictionary object, if there are many integers for this array, and you really dont mind how they are stored, then look at hashtables holding an arraylist or generic.list. Regards Si

Post a reply

Enter your message below

Sign in or Join us (it's free).

We'd love to hear what you think! Submit ideas or give us feedback