How can I restrict my select so that it does not select empty string values?
<p>I have the following code:</p>

<pre><code>    protected IEnumerable&lt;string&gt; GetErrorsFromModelState() {
        var errors = ModelState
         .SelectMany(x =&gt; x.Value.Errors.Select(error =&gt; error.ErrorMessage)
         .Union(x.Value.Errors.Select(error =&gt; error.Exception.Message)));
        return errors;
    }
</code></pre>

<p>It works but when there is an entry for ErrorMessage of "" then it adds this to the list of strings. Is there a way that I could make it only select ErrorMessages if they are not "" ?</p>
