[Mono-bugs] [Bug 33183][Nor] New - GetHashCode artifacts.

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
2 Nov 2002 18:08:51 -0000


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by miguel@ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=33183

--- shadow/33183	Sat Nov  2 13:08:51 2002
+++ shadow/33183.tmp.22818	Sat Nov  2 13:08:51 2002
@@ -0,0 +1,41 @@
+Bug#: 33183
+Product: Mono/Runtime
+Version: unspecified
+OS: other
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: miguel@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: GetHashCode artifacts.
+
+This is taken from the:
+
+http://radio.weblogs.com/0109845/
+
+Web page, the following program should display the same values, but it
+renders instead:
+
+mono$ mono b.exe 
+101574
+1516687916
+101574
+
+
+using System;
+class X {
+	static void Main ()
+	{
+  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));	
+	}
+}