title: How to add an empty field to csv file if it is null?
body: <p>I'm writing some data in c# to a csv file and some fields are showing up as null when I add everthing without checking for whether it's null, I'd like for them to just be empty in excel format.  So I did:</p>
  
  <pre><code>if (a!= null)
        insert(a)
  else insert(""); 
  </code></pre>
  
  <p>Which is 3 lines and I was wondering if there's an easier way to do this since I have to test this for multiple entries.</p>