How to make nullable list of int
<p>I have this string:</p>

<pre><code>string alertsId = "1,2,3,4";
</code></pre>

<p>Then I convert  the string to list of ints:</p>

<pre><code>List&lt;int&gt; list = alertsId.Split(',').Select(n =&gt; Convert.ToInt32(n)).ToList();
</code></pre>

<p>How can I convert the list above to nullable list of ints?</p>