Solved

C# Dynamic Multidimension Arrays

Posted on 2008-10-02
4
789 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

What is Waterfall Model? Waterfall model is the classic Software Development Life Cycle method practiced in software development process. As the name "waterfall" describes, this development is flowing downwards steadily like waterfall, i.e., procee…
The Fluent Interface Design Pattern You can use the Fluent Interface (http://en.wikipedia.org/wiki/Fluent_interface) design pattern to make your PHP code easier to read and maintain.  "Fluent Interface" is an object-oriented design pattern that r…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

830 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