imported delegate patches from Daniel, new GetHashCode icalls
[mono.git] / mcs / class / corlib / System / ValueType.cs
index 3a1d48659b9db3d5e2b5e516e87d224a7790710d..8edc6c321c8ed39dd2f63c689564a093684f4add 100644 (file)
@@ -7,6 +7,8 @@
 // (C) Ximian, Inc.  http://www.ximian.com
 //
 
+using System.Runtime.CompilerServices;
+
 namespace System {
        
        public abstract class ValueType {
@@ -42,17 +44,8 @@ namespace System {
                //   Gets a hashcode for this value type using the
                //   bits in the structure
                // </summary>
-               [MonoTODO]
-               public override int GetHashCode ()
-               {
-                       if (this == null)
-                               return 0;
-
-                       // TODO: compute a hashcode based on the actual
-                       // contents.
-
-                       return 0;
-               }
+               [MethodImplAttribute(MethodImplOptions.InternalCall)]
+               public extern override int GetHashCode ();
 
                // <summary>
                //   Stringified representation of this ValueType.