W3C home > Mailing lists > Public > www-archive@w3.org > December 2002

URI comparison in C# / .NET 1.0

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Thu, 26 Dec 2002 20:47:53 +0100
To: www-archive@w3.org
Message-ID: <3e115c0d.346756409@smtp.bjoern.hoehrmann.de>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 7 November 2012 14:17:24 GMT