Search results for query: *

  • Users: Marc W
  • Content: Threads
  • Order by date
  1. M

    Array as function parameter, on stack or on heap?

    Say I have this: "double CalculateSomething(double[,] VeryLargArray)", is the array actually referenced to memory on the heap, or is the whole array placed on the function stack? If the latter, is there a way to prevent this, if your array is really large? I think if the array is really large...
  2. M

    The use of readonly

    What is the use of making the class member timeouts readonly in the code below, what is the effect? I think the content of the timeouts list can still be changed, the only thing that is being prohibited is assigning a new Dictionary object to it. Is that right? And is this good coding, since no...
  3. M

    Question Strange code, why doesn't the compiler give an error and what could the use

    I am encountering some strange old code: foreach (OrgType type in Enum.GetValues(typeof(OrgRType))) { // ... } I thought that the two Types here (OrgType and OrgRType) should be the same, and even if it does compile, I fail to see the use. You are looping over the wrong enum type right?
Back
Top Bottom