title: Getting list of error messages from ModelState with Linq
body: <p>Is it possible to create one chained linq statements to create an IEnumerable(Of String) of error messages from ViewData.ModelState?</p>
  
  <p>I have tried:</p>
  
  <pre><code>Dim errorlist = ViewData.ModelState.Select(
      Function(m) m.Value.Errors.Select(
          Function(e) e.ErrorMessage))
  </code></pre>
  
  <p>But that linq produces IEnumerable(Of IEnumerable(Of String)).</p>