/// <summary> /// each objClass each gets numOfClasses number of structs /// </summary> public heavyClass[] getMultiCallerClasses(int numOfClasses, int numOfCallers) { var o = new objClass(); var a = new heavyClass[numOfClasses * numOfCallers]; int count = 0; for (int i = 0; i < numOfCallers; i++) { var ia = o.getClasses(numOfClasses); foreach (var c in ia) { a[count++] = c; } } return a; }
public heavyClass[] getClasses(int num) { var a = new heavyClass[num]; for (int i = 0; i < num; i++) { a[i] = new heavyClass() { one = 1, two = 2, thr = 3, fou = 4, fiv = 5, six = 6, sev = 7, eig = 8, nin = 9, ten = 10 }; } return a; }