K
K Viltersten
I'm designing a class that will base its
functionality on one (or more) arrays of
doubles. Each array will be of the same
length pairwise but their number may
vary from a single one up to several.
The usual way i'd use in C++ would be to
declare the following.
double[][] *data;
In C# i have two more options. Given
that the number of arrays might vary as
the program goes on (as in: i'd like to
remove and add arrays on the fly), i
wonder if there's a gain in deploying
Array class directly.
Also, which would be more prefered in
C# - the jagged or the multidimensional
array?
functionality on one (or more) arrays of
doubles. Each array will be of the same
length pairwise but their number may
vary from a single one up to several.
The usual way i'd use in C++ would be to
declare the following.
double[][] *data;
In C# i have two more options. Given
that the number of arrays might vary as
the program goes on (as in: i'd like to
remove and add arrays on the fly), i
wonder if there's a gain in deploying
Array class directly.
Also, which would be more prefered in
C# - the jagged or the multidimensional
array?