title: Try within Linq query
body: <p>Is there a neat way to ignore exceptions in Linq? I.e., lets say I have a class <code>ObjectA</code> that takes a string parameter in its constructor, and within the constructor there is some validation going on - meaning that if the string does not have the correct format, the constructor will throw. By the following code I would get a List of <code>ObjectA</code> from a list of strings: </p>
  
  <pre><code>var result = new List&lt;ObjectA&gt;();
  foreach (string _s in ListOfFiles) {
      try {
          ObjectA _A = new ObjectA(_s);
          result.Add(_A);
      }
      catch{}
  }
  </code></pre>
  
  <p>So my question is: Is there a one line linq way, a la (pseudocode coming up ...)</p>
  
  <pre><code>var result = ListOfFiles.Select(n =&gt; try {new ObjectA(n)}).ToList();
  </code></pre>