title: visual studio 2017 debugger does not show variables when C# Array.ConvertAll is used
body: <p>When I use C# <code>Array.ConvertAll</code>, the variable in the body of the converter function is not visible any more in the debugger in Visual Studio 2017.</p>
  
  <p>For example in:</p>
  
  <pre><code>public static void    Test()
  {
      Vector3[] OriginalArray = new Vector3 [3]{ new Vector3(1,2,3), new Vector3(4, 5, 6), new Vector3(7, 8, 9)};
      int[] Indices = new int[2] { 2, 1};
  
      Vector3[] SelectedArray = Array.ConvertAll(Indices, index =&gt; OriginalArray[index]);
  }
  </code></pre>
  
  <p>The variable <code>OriginalArray</code> is not visible in the debugger "Local"/"Autos"/"Watch"-window.
  While the variable is visible when used in the manner as in the code below:</p>
  
  <pre><code>public static void Test2()
  {
      Vector3[] OriginalArray = new Vector3[3] { new Vector3(1, 2, 3), new Vector3(4, 5, 6), new Vector3(7, 8, 9) };
      int[] Indices = new int[2] { 2, 1 };
  
      List&lt;Vector3&gt; subverticesList = new List&lt;Vector3&gt;();
      foreach (int index in Indices)
      {
          subverticesList.Add(OriginalArray[index]);
      }
      Vector3[] SelectedArray = subverticesList.ToArray();
  }
  </code></pre>
  
  <p>See attached screenshots:
  <a href="https://i.stack.imgur.com/o7kDb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/o7kDb.png" alt="Visual-Studio-2017-Array-ConvertAll-Not-Showing-Variable-01.png"></a>
  <a href="https://i.stack.imgur.com/m1hlf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/m1hlf.png" alt="Visual-Studio-2017-Showing-Variable-with foreach-loop-02.png"></a></p>