Beispiel #1
0
 /// <summary>
 /// Checks whether the replacement will have any effect.
 /// </summary>
 /// <returns></returns>
 internal bool IsIdentity()
 {
     return(OldValue.Equals(NewValue));
 }
Beispiel #2
0
 public override int GetHashCode()
 {
     return(Url.GetHashCode() ^ RuleIndex ^ OldValue.GetHashCode() ^ NewValue.GetHashCode());
 }
Beispiel #3
0
 public override int GetHashCode()
 {
     return(base.GetHashCode() ^ Property.GetHashCode() ^ OldValue.GetHashCode() ^ CurrentValue.GetHashCode());
 }
Beispiel #4
0
        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(": "));
        }