title: How to get the latest file of certain pattern created in a directory
body: <p>I could get the latest created by using this below; but I want the latest created with certain  pattern, not just the latest created</p>
  
  <pre><code> var directory = new DirectoryInfo("D:\\my_dir\\dir_1\\dir_2\\");
          var smf_log_name = directory.GetFiles().OrderByDescending(f =&gt; f.LastWriteTime).First();
  </code></pre>