public override int GetHashCode() { var hash = 23; hash = hash * 31 + MatchCase.GetHashCode(); hash = hash * 31 + MatchWholeWord.GetHashCode(); hash = hash * 31 + IsRegex.GetHashCode(); hash = hash * 31 + UseExcludeSettingsAndIgnoreFiles.GetHashCode(); if (Query != null) { hash = hash * 31 + Query.GetHashCode(); } if (WorkingDirectory != null) { hash = hash * 31 + WorkingDirectory.GetHashCode(); } if (Include != null) { hash = hash * 31 + Include.GetHashCode(); } if (Exclude != null) { hash = hash * 31 + Exclude.GetHashCode(); } return(hash); }
public override int GetHashCode() { unchecked { var hashCode = base.GetHashCode(); hashCode = (hashCode * 397) ^ (InField != null ? InField.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Index != null ? Index.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Characters != null ? Characters.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Direction != null ? Direction.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Result != null ? Result.GetHashCode() : 0); hashCode = (hashCode * 397) ^ MatchCase.GetHashCode(); hashCode = (hashCode * 397) ^ (StartIndex != null ? StartIndex.GetHashCode() : 0); return(hashCode); } }
public override int GetHashCode() { unchecked { var hashCode = base.GetHashCode(); hashCode = (hashCode * 397) ^ (FieldsToSearch != null ? FieldsToSearch.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Result != null ? Result.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (StartIndex != null ? StartIndex.GetHashCode() : 0); hashCode = (hashCode * 397) ^ MatchCase.GetHashCode(); hashCode = (hashCode * 397) ^ RequireAllTrue.GetHashCode(); hashCode = (hashCode * 397) ^ RequireAllFieldsToMatch.GetHashCode(); hashCode = (hashCode * 397) ^ (ResultsCollection != null ? ResultsCollection.GetHashCode() : 0); return(hashCode); } }