projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
imported delegate patches from Daniel, new GetHashCode icalls
[mono.git]
/
mcs
/
class
/
corlib
/
System
/
ValueType.cs
diff --git
a/mcs/class/corlib/System/ValueType.cs
b/mcs/class/corlib/System/ValueType.cs
index 3a1d48659b9db3d5e2b5e516e87d224a7790710d..8edc6c321c8ed39dd2f63c689564a093684f4add 100644
(file)
--- a/
mcs/class/corlib/System/ValueType.cs
+++ b/
mcs/class/corlib/System/ValueType.cs
@@
-7,6
+7,8
@@
// (C) Ximian, Inc. http://www.ximian.com
//
// (C) Ximian, Inc. http://www.ximian.com
//
+using System.Runtime.CompilerServices;
+
namespace System {
public abstract class ValueType {
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>
// 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.
// <summary>
// Stringified representation of this ValueType.