title: Creating a file Uri in C#
body: <p>I think I'm missing something obvious....</p>
  
  <p>I've been reading code in a new project and have encountered code equivalent to the following:</p>
  
  <pre><code>var filePath = @"C:\temp\tmp1234.tmp";    // Generally obtained from System.IO.* calls
  var uri = new Uri("file://" + filePath);
  </code></pre>
  
  <p>I thought that would be equivalent to:</p>
  
  <pre><code>var filePath = @"C:\temp\tmp1234.tmp";
  var uri = new Uri(filePath);
  </code></pre>
  
  <p>(assuming the Uri class can parse the file path, deduce the scheme and do whatever escaping needs doing).</p>
  
  <p>Since the code seems to work and this being done so frequently and so consistently I'm assuming the original developer had a good reason for using the <code>"file://" + filePath</code> idiom.  Could someone clue me in about what that reason might be?  </p>
  
  <p>Thanks!</p>