title: C# Equating URIs
body: <p>What is the standard way to determine that these 2 similar Uris are actually the same?</p>
  
  <pre><code>var a = new Uri("http://sample.com/sample/");
  var b = new Uri("http://sample.com/sample");
  Console.WriteLine(a.Equals(b));
  
  // False
  </code></pre>
  
  <p>What is the best way to determine that a == b?  I could compare the sub properties of the Uri object such as Host, LocalPath, etc, but I'm wondering if there is a better way.</p>
  
  <p>Edit: Thanks everybody.  I basically just have to have the user enforce whether that are the same or not.</p>