/// <summary> /// Checks whether the replacement will have any effect. /// </summary> /// <returns></returns> internal bool IsIdentity() { return(OldValue.Equals(NewValue)); }
public override int GetHashCode() { return(Url.GetHashCode() ^ RuleIndex ^ OldValue.GetHashCode() ^ NewValue.GetHashCode()); }
public override int GetHashCode() { return(base.GetHashCode() ^ Property.GetHashCode() ^ OldValue.GetHashCode() ^ CurrentValue.GetHashCode()); }
public override String ToString() { var parts = new List <String>(); parts.Add(PropertyName); if (_valuesAreProvided) { parts.Add(String.Format("+[{0}], -[{1}]", NewValue.ToInvariantString() ?? "null", OldValue.ToInvariantString() ?? "null")); } if (_tagIsProvided) { parts.Add(Tag.ToInvariantString()); } return(parts.StringJoin(": ")); }