C#

Moderators: None (Apply to moderate this forum)
Number of threads: 2722
Number of posts: 5749

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
create a 2-dimensional c# array Posted by monfu on 12 Jan 2009 at 3:33 PM
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
Report
Re: create a 2-dimensional c# array Posted by Brutes on 13 Jan 2009 at 6:56 AM
Hi Johann,

Here is some background on Arrays in C#:
http://www.c-sharpcorner.com/UploadFile/mahesh/WorkingWithArrays11232005064036AM/WorkingWithArrays.aspx


You might what to consider using a collection rather than arrays.
Collections will give you the freedom to specify exactly what you want to collect and provide you with similar access capabilities.

Here is an article that might help.
http://support.microsoft.com/default.aspx?scid=kb;en-us;307484

Regards



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.