title: Null propagation operator and foreach
body: <p>Reading a lot about the <a href="https://roslyn.codeplex.com/discussions/540883" rel="noreferrer">Null propagation operator <code>?.</code></a>, I found no answer whether it is helpful in the following scenario.</p>
  
  <p>Code that throws:</p>
  
  <pre><code>int[] values = null;
  
  foreach ( var i in values ) // Throws since values is null.
  {
      // ...
  }
  </code></pre>
  
  <p>To make this working, I have to add a <code>null</code> check before access to the <code>values</code> variable.</p>
  
  <p>Most likely the above code is out of scope of the design considerations for the Null propagation operator. Still, to be sure, I have to ask.</p>
  
  <p><strong>My question:</strong></p>
  
  <p>Is the Null propagation operator helpful when trying to access <code>null</code> collections in a <code>foreach</code> loop?</p>