/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { int hashCode = 41; if (FilesId != null) { hashCode = hashCode * 59 + FilesId.GetHashCode(); } hashCode = hashCode * 59 + IncludeAttachments.GetHashCode(); return(hashCode); } }
public void AddFiles(Guid parentId, IEnumerable <string> files) { foreach (var file in files) { var fileId = ProcessRecordsFile(JohnId.ToString(), file, new Dictionary <string, object>() { { "parentId", parentId } }).Result; var fileName = file; FilesId.Add(fileName, fileId); } }
/// <summary> /// Returns true if PdfMergeParameters instances are equal /// </summary> /// <param name="input">Instance of PdfMergeParameters to be compared</param> /// <returns>Boolean</returns> public bool Equals(PdfMergeParameters input) { if (input == null) { return(false); } return (( FilesId == input.FilesId || FilesId != null && input.FilesId != null && FilesId.SequenceEqual(input.FilesId) ) && ( IncludeAttachments == input.IncludeAttachments || IncludeAttachments.Equals(input.IncludeAttachments) )); }