I got a class which holds an array and another object:
public class MyClass
{
public double[] myArray;
public int otherObject;
};
Now I want to create different array instances of that class:
static void Main(string[] args)
{
MyClass[] classArray1 = new MyClass[classArraySize1]
MyClass[] classArray2 = new MyClass[classArraySize2]
};
But how do I size myArray for every classArray individually?
They should be assigned values like this later:
classArray1[i].myArray[j] = 1.0;
classArray2[n].myArray[k] = 2.0;
MyClass.