/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { var hashCode = 41; // Suitable nullity checks etc, of course :) if (StartTime != null) { hashCode = hashCode * 59 + StartTime.GetHashCode(); } if (EndTime != null) { hashCode = hashCode * 59 + EndTime.GetHashCode(); } if (Stdout != null) { hashCode = hashCode * 59 + Stdout.GetHashCode(); } if (Stderr != null) { hashCode = hashCode * 59 + Stderr.GetHashCode(); } if (ExitCode != null) { hashCode = hashCode * 59 + ExitCode.GetHashCode(); } return(hashCode); } }
/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { var hashCode = 41; // Suitable nullity checks etc, of course :) if (Image != null) { hashCode = hashCode * 59 + Image.GetHashCode(); } if (Command != null) { hashCode = hashCode * 59 + Command.GetHashCode(); } if (Workdir != null) { hashCode = hashCode * 59 + Workdir.GetHashCode(); } if (Stdin != null) { hashCode = hashCode * 59 + Stdin.GetHashCode(); } if (Stdout != null) { hashCode = hashCode * 59 + Stdout.GetHashCode(); } if (Stderr != null) { hashCode = hashCode * 59 + Stderr.GetHashCode(); } if (Env != null) { hashCode = hashCode * 59 + Env.GetHashCode(); } return(hashCode); } }