I'm working on my first non-trivial home project in C# (have a C++ background). Part of this invloves hitting my "Calculate" button at which point the program requires about 30 seconds to do the...
Type: Posts; User: gah_ribaldi
I'm working on my first non-trivial home project in C# (have a C++ background). Part of this invloves hitting my "Calculate" button at which point the program requires about 30 seconds to do the...
I'm wondering whether it's possible to override the System.Collections.Generic.List.Add() method so that it refuses to add more elements to a list once the list's capacity has been reached.
Is...
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...