Using Null coalescing operator in foreach with select expression
<pre><code>foreach (var item in Model.PublishedSong.RelatedSongs.Select((value, i) =&gt; new { value, i }) ?? Enumerable.Empty &lt;dynamic&gt;())
{

}
</code></pre>

<p>Related Songs may or may not be null, is there any way to use null coalescing operator here? I still get the error message: </p>

<blockquote>
  <p>value cannot be null</p>
</blockquote>