dotgnu-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[DotGNU]cscc/ecma c# question


From: Ravi Mishra
Subject: [DotGNU]cscc/ecma c# question
Date: 21 Oct 2002 13:08:06 -0700

Hi,

Accd. to ECMA spec for C#, following code:

using System;

class MainClass 
{
  static void Main() {
    string s = "Test";
    string t = string.Copy(s);
    Console.WriteLine(s == t);
    Console.WriteLine((object)s == (object)t);
  }
}

should produce 
True            (string comparison)
False           (object comparison)

Where as ilrun is returning
True
True

Any insight/suggestions?

Thanks,
Ravi
----



reply via email to

[Prev in Thread] Current Thread [Next in Thread]