title: Filter out null values in Linq
body: <p>I have the following (working) code. It is very inelegant, and I think it can be refactored using Linq only and hence avoiding the <code>foreach</code> loop and having to rely on an external List&lt;>. How to do this? Thanks </p>
  
  <pre><code>  List&lt;string&gt; answerValues = new List&lt;string&gt;();
    foreach (Fillings filling in fillings)
    {
        string answer = filling.Answers.Where(a =&gt; a.Questions == question)
            .Select(a =&gt; a.Answer).FirstOrDefault();
        if (!string.IsNullOrEmpty(answer)) answerValues.Add(answer);
    }
  </code></pre>