Changeset 1707
- Timestamp:
- 04/29/09 16:33:33 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Persistence/3.3/Core/Serializer.cs
r1703 r1707 8 8 using HeuristicLab.Persistence.Default.Decomposers.Storable; 9 9 using System.Text; 10 using System.Runtime.InteropServices;11 10 12 11 namespace HeuristicLab.Persistence.Core { … … 21 20 22 21 public int GetHashCode(object obj) { 23 GCHandle handle = GCHandle.Alloc(obj, GCHandleType.Weak); 24 int address = GCHandle.ToIntPtr(handle).ToInt32(); 25 handle.Free(); 26 return address; 22 return obj.GetHashCode(); 27 23 } 28 24
Note: See TracChangeset
for help on using the changeset viewer.