CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: BioPhysEngr

Search: Search took 0.02 seconds.

  1. Replies
    4
    Views
    1,309

    Re: Private Array is Implicitly Modified

    Or, more explicitly, you can do an array copy like:



    public IntArray(int[] myIntArray)
    {
    //Create two new arrays
    this.myIntArray = new int[myIntArray.Length];
    ...
  2. Replies
    4
    Views
    1,309

    Re: Private Array is Implicitly Modified

    This block of code assigns two variables (namely this.myIntArray and this.myIntArrayBackup) that both point at the exact same array data structure:



    public IntArray(int[] myIntArray)
    {
    ...
Results 1 to 2 of 2





Click Here to Expand Forum to Full Width

Featured