Changeset 4965
 Timestamp:
 11/28/10 01:30:53 (14 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

branches/OKB/HeuristicLab.Services.OKB/3.3/ExperimentEqualityComparer.cs
r4591 r4965 46 46 equal = equal && value.X.AlgorithmParameterId == value.Y.AlgorithmParameterId; 47 47 equal = equal && value.X.DataTypeId == value.Y.DataTypeId; 48 equal = equal && value.X.Value.Equals(value.Y.Value); 48 equal = equal && value.X.Value.Length == value.Y.Value.Length; 49 if (equal) { 50 byte[] xBlob = value.X.Value.ToArray(); 51 byte[] yBlob = value.Y.Value.ToArray(); 52 int i = 0; 53 while (equal && (i < xBlob.Length)) { 54 equal = equal && xBlob[i] == yBlob[i]; 55 i++; 56 } 57 } 49 58 } 50 59 } … … 87 96 equal = equal && value.X.ProblemParameterId == value.Y.ProblemParameterId; 88 97 equal = equal && value.X.DataTypeId == value.Y.DataTypeId; 89 equal = equal && value.X.Value.Equals(value.Y.Value); 98 equal = equal && value.X.Value.Length == value.Y.Value.Length; 99 if (equal) { 100 byte[] xBlob = value.X.Value.ToArray(); 101 byte[] yBlob = value.Y.Value.ToArray(); 102 int i = 0; 103 while (equal && (i < xBlob.Length)) { 104 equal = equal && xBlob[i] == yBlob[i]; 105 i++; 106 } 107 } 90 108 } 91 109 }
Note: See TracChangeset
for help on using the changeset viewer.