URI comparison in C# / .NET 1.0

Using

  <http://msdn.microsoft.com/library/en-us/cpref/html/frlrfsystemuriclassequalstopic.asp>

in a C# program

  using System;
  
  class UriEq
  {
      static void Main(String[] Args)
      {
          Uri uri1 = new Uri("http://www.example.org/%61");
          Uri uri2 = new Uri("http://www.example.org/a");
          System.Console.WriteLine(uri1.Equals(uri2));
      }
  }

prints "True".

Received on Thursday, 26 December 2002 14:47:32 UTC