What is the standard way to determine if these two similar uris are actually the same?
var a = new Uri("http://sample.com/sample/"); var b = new Uri("http://sample.com/sample"); Console.WriteLine(a.Equals(b));
What is the best way to determine that a == b? I could compare the helper properties of a Uri object such as Host, LocalPath, etc., but I wonder if there is a better way.
Edit: Thanks everyone. I just want the user to do the same or not.
source share