Solved

C# Dynamic Multidimension Arrays

Posted on 2008-10-02
4
780 Views
Last Modified: 2013-11-12
Hi Experts,

Does C# have a dynamic multidimension array?

At the moment I am using List<double[]> but surely there is a more appropriate collection?

Just to note the double[,] will not suffice as I want to be able to expand and shrink the array dynamically.

Thanks,
j
0
Comment
Question by:XPUSR
4 Comments
 
LVL 18

Accepted Solution

by:
philipjonathan earned 25 total points
ID: 22624170
I don't think there is any such array off-the-shelf. But probably you can use List of List? It's close to what you are using now. The difference is, it can expand or shrink on both dimensions.
0
 
LVL 55

Assisted Solution

by:Jaime Olivares
Jaime Olivares earned 25 total points
ID: 22638455
why not List<List<double>> ?
Every element can have any size in both "vertical" and "horizontal" dimensions.


0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now