Hi,

The following code runs incorrectly:
  object o = "foo";
  Console.WriteLine(o.GetHashCode());
  Console.WriteLine(typeof(object).GetMethod("GetHashCode").Invoke(o,
null));
  Console.WriteLine(typeof(string).GetMethod("GetHashCode").Invoke(o,
null));

The second line invokes GetHashCode in System.Object, instead of in
System.String. This is incorrect. Please note that Microsoft's
implementation of .NET version 1.0 has the same bug (but only for
System.String), it is however, not the correct behavior. MS has fixed it
in the current 1.1 beta.

Regards,
Jeroen


_______________________________________________
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to