예제 #1
0
 /// <summary>
 /// Returns the hash code for this instance.
 /// </summary>
 /// <returns>
 /// A 32-bit signed integer that is the hash code for this instance.
 /// </returns>
 public override int GetHashCode()
 {
     return(Evaluate.GenerateHashCode(this.PropertyName, this.OriginalValue, this.NewValue));
 }
예제 #2
0
 /// <summary>
 /// Indicates whether the current object is equal to another object of the same type.
 /// </summary>
 /// <returns>
 /// true if the current object is equal to the <paramref name="other"/> parameter; otherwise, false.
 /// </returns>
 /// <param name="other">An object to compare with this object.</param>
 public bool Equals(PropertyComparisonResult other)
 {
     return(Evaluate.Equals(this, other, result => result.PropertyName, result => result.OriginalValue, result => result.NewValue));
 }