title: Getting actual file name (with proper casing) on Windows with .NET
body: <p>I want to do exactly the same as in <a href="https://stackoverflow.com/questions/74451/getting-actual-file-name-with-proper-casing-on-windows">this question</a>:</p>
  
  <blockquote>
    <p>Windows file system is case insensitive. How, given a file/folder name (e.g. "somefile"), I get the actual name of that file/folder (e.g. it should return "SomeFile" if Explorer displays it so)?</p>
  </blockquote>
  
  <p>But I need to do it in .NET and I want the full path (<code>D:/Temp/Foobar.xml</code> and not just <code>Foobar.xml</code>).</p>
  
  <p>I see that <code>FullName</code> on the <code>FileInfo</code> class doesn't do the trick.</p>