public override int GetHashCode() { unchecked { var hashCode = TargetPropertyName?.GetHashCode() ?? 0; hashCode = (hashCode * 397) ^ (ComparedValue?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (int)ValueComparingOperator; return(hashCode); } }
public override int GetHashCode() { unchecked { var hashCode = TargetPropertyName != null?TargetPropertyName.GetHashCode() : 0; hashCode = (hashCode * 1013) ^ (ComparedValue != null ? ComparedValue.GetHashCode() : 0); hashCode = (hashCode * 1013) ^ (int)ValueComparingOperator; return(hashCode); } }
/// <summary>Serves as the default hash function.</summary> /// <returns>A hash code for the current object.</returns> public override int GetHashCode() { unchecked { int hashCode = SourceClassName.GetHashCode(); hashCode = (hashCode * 397) ^ SourceClassNamespace.GetHashCode(); hashCode = (hashCode * 397) ^ (int)SourceMultiplicity; hashCode = (hashCode * 397) ^ (int)SourceRole; hashCode = (hashCode * 397) ^ TargetClassName.GetHashCode(); hashCode = (hashCode * 397) ^ TargetClassNamespace.GetHashCode(); hashCode = (hashCode * 397) ^ (int)TargetMultiplicity; hashCode = (hashCode * 397) ^ TargetPropertyTypeName.GetHashCode(); hashCode = (hashCode * 397) ^ TargetPropertyName.GetHashCode(); hashCode = (hashCode * 397) ^ (int)TargetRole; return(hashCode); } }
public override int GetHashCode() { unchecked { return(((TargetPropertyName != null ? TargetPropertyName.GetHashCode() : 0) * 397) ^ (int)ValueComparingOperator ^ ComparedValue.GetHashCode()); } }