/// <summary> /// Serves as a hash function for a <see cref="Binding"/> object. /// </summary> /// <returns>A hash code for this instance that is suitable for use in hashing algorithms and data structures such as a /// hash table.</returns> public override int GetHashCode() { int targetHash = Target == null ? 0 : Target.GetHashCode(); int sourceHash = Source == null ? 0 : Source.GetHashCode(); return(targetHash ^ TargetPath.GetHashCode() ^ sourceHash ^ SourcePath.GetHashCode()); }
public override int GetHashCode() => IconLocation.GetHashCode() ^ TargetPath.GetHashCode() ^ Arguments.GetHashCode() ^ WorkingDirectory.GetHashCode() ^ WindowStyle.GetHashCode() ^ WindowStyle.GetHashCode() ^ Description.GetHashCode() ^ FullName.GetHashCode();
public override int GetHashCode() { int hash = 0; if (SourcePath != null) { hash = SourcePath.GetHashCode(); } if (TargetPath != null) { hash = hash * 4567 + TargetPath.GetHashCode(); } return(hash); }
public override int GetHashCode() { return(TargetPath != null ? TargetPath.GetHashCode() : 0); }