I've been doing some digging around and I wonder if I can now say
foreach (myClass instance in myArray){
instance = new myClass(somethingToGoInEachConstructor);
}
What do you think?
Type: Posts; User: gah_ribaldi
I've been doing some digging around and I wonder if I can now say
foreach (myClass instance in myArray){
instance = new myClass(somethingToGoInEachConstructor);
}
What do you think?
Read but not forgotten. That code worked fine of course, but I'm stumbling when I get to needing to use a constructor. If the array - let's make it of myClass objects is an attribute of a class, I...
Hey all. I'm hoping you can help with an array problem.
I need to create a 2D array with size decided by the user during execution. After its size has been chosen it will not alter during...