Exemplo n.º 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = FieldOldValue?.GetHashCode() ?? 0;
         hashCode = (hashCode * 397) ^ (FieldNewValue?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (FieldName?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (FieldPath?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (Change.GetHashCode());
         return(hashCode);
     }
 }
Exemplo n.º 2
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = (FieldOldValue != null ? FieldOldValue.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (FieldNewValue != null ? FieldNewValue.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (FieldOldType != null ? FieldOldType.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (FieldNewType != null ? FieldNewType.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (FieldName != null ? FieldName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Change.GetHashCode());
         return(hashCode);
     }
 }
Exemplo n.º 3
0
        public override int GetHashCode()
        {
            unchecked
            {
                int hashCode = FieldOldValue?.GetHashCode() ?? 0;
                hashCode = (hashCode * 397) ^ (FieldNewValue?.GetHashCode() ?? 0);
#pragma warning disable 618
                hashCode = (hashCode * 397) ^ (FieldOldType.GetHashCode());
                hashCode = (hashCode * 397) ^ (FieldNewType.GetHashCode());
#pragma warning restore 618
                hashCode = (hashCode * 397) ^ (FieldName?.GetHashCode() ?? 0);
                hashCode = (hashCode * 397) ^ (FieldPath?.GetHashCode() ?? 0);
                hashCode = (hashCode * 397) ^ (Change.GetHashCode());
                return(hashCode);
            }
        }