Search:

Type: Posts; User: gah_ribaldi

Search: Search took 0.00 seconds.

  1. How to get my program to gracefully wait for some calculations to be done?

    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...
  2. Replies
    2
    Views
    18,260

    C# Lists - can I override Add() ?

    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...
  3. Replies
    10
    Views
    8,084

    I've been doing some digging around and I wonder...

    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?
  4. Replies
    10
    Views
    8,084

    Read but not forgotten. That code worked fine of...

    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...
  5. Replies
    10
    Views
    8,084

    2D array, size unknown at compile time

    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...
Results 1 to 5 of 5