Changeset 15162 for trunk/sources/HeuristicLab.Encodings.PermutationEncoding/3.3/PermutationEqualityComparer.cs
- Timestamp:
- 07/06/17 14:42:50 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Encodings.PermutationEncoding/3.3/PermutationEqualityComparer.cs
r15067 r15162 30 30 public class PermutationEqualityComparer : EqualityComparer<Permutation> { 31 31 public override bool Equals(Permutation x, Permutation y) { 32 if ( x == null && y == null) return true;32 if (ReferenceEquals(x, y)) return true; 33 33 if (x == null || y == null) return false; 34 if (ReferenceEquals(x, y)) return true;35 34 if (x.Length != y.Length) return false; 36 35 if (x.PermutationType != y.PermutationType) return false;
Note: See TracChangeset
for help on using the changeset viewer.