Solved

C# Dynamic Multidimension Arrays

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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

760 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

19 Experts available now in Live!

Get 1:1 Help Now