- Timestamp:
- 08/31/11 11:52:11 (13 years ago)
- Location:
- branches/GeneralizedQAP
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GeneralizedQAP
- Property svn:mergeinfo changed
/trunk/sources (added) merged: 6648-6649,6652-6656,6661-6674,6676-6681,6684
- Property svn:mergeinfo changed
-
branches/GeneralizedQAP/HeuristicLab.Common/3.3/ReferenceEqualityComparer.cs
r5445 r6685 23 23 24 24 namespace HeuristicLab.Common { 25 public class ReferenceEqualityComparer <T> : IEqualityComparer<T> where T : class{26 bool IEqualityComparer< T>.Equals(T x, Ty) {25 public class ReferenceEqualityComparer : IEqualityComparer<object> { 26 bool IEqualityComparer<object>.Equals(object x, object y) { 27 27 return object.ReferenceEquals(x, y); 28 28 } 29 29 30 int IEqualityComparer< T>.GetHashCode(Tobj) {30 int IEqualityComparer<object>.GetHashCode(object obj) { 31 31 if (obj == null) return 0; 32 32 return obj.GetHashCode();
Note: See TracChangeset
for help on using the changeset viewer.