title: Remove null from list string c#
body: <p>Seems it was answered a few times already but it's not working for me...</p>
  
  <p>I have a list  called combox. I want to remove null items.</p>
  
  <p>I wrote:</p>
  
  <pre><code>   List&lt;String&gt; comboxTable = new List&lt;string&gt;();  
      comboxTable = comboxTable.RemoveAll(item =&gt; item == null);
  </code></pre>
  
  <p>but I'm getting:</p>
  
  <blockquote>
    <p>Error 14  Cannot implicitly convert type 'int' to
    'System.Collections.Generic.List'</p>
  </blockquote>
  
  <p>I tried this one: </p>
  
  <pre><code>comboxTable = comboxTable.RemoveAll(string.IsNullOrWhiteSpace);
  </code></pre>
  
  <p>Same error.
  Where is the 'int'?
  What am I doing wrong?</p>
  
  <p>(Combox is getting its string value someplace else in the code and has Nulls here and there. I want to delete them)</p>