title: Getting rid of null/empty string values in a C# array
body: <p>I have a program where an array gets its data using string.Split(char[] delimiter).
  (using ';' as delimiter.)</p>
  
  <p>Some of the values, though, are null. I.e. the string has parts where there is no data so it does something like this:</p>
  
  <blockquote>
    <p>1 ;2 ; ; 3;</p>
  </blockquote>
  
  <p>This leads to my array having null values.</p>
  
  <p>How do I get rid of them?</p>