示例#1
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = 13;
         hashCode = (hashCode * 17) ^ TypeOfFileSearch.GetHashCode();
         hashCode = (hashCode * 17) ^ FileNames?.GetHashCode() ?? 5;
         hashCode = (hashCode * 17) ^ IgnoreFilePattern?.GetHashCode() ?? 5;
         hashCode = (hashCode * 17) ^ TypeOfSearch.GetHashCode();
         hashCode = (hashCode * 17) ^ SearchPattern?.GetHashCode() ?? 5;
         hashCode = (hashCode * 17) ^ ReplacePattern?.GetHashCode() ?? 5;
         hashCode = (hashCode * 17) ^ CaseSensitive.GetHashCode();
         hashCode = (hashCode * 17) ^ WholeWord.GetHashCode();
         hashCode = (hashCode * 17) ^ Multiline.GetHashCode();
         hashCode = (hashCode * 17) ^ Singleline.GetHashCode();
         hashCode = (hashCode * 17) ^ BooleanOperators.GetHashCode();
         hashCode = (hashCode * 17) ^ IncludeSubfolders.GetHashCode();
         hashCode = (hashCode * 17) ^ IncludeHiddenFiles.GetHashCode();
         hashCode = (hashCode * 17) ^ IncludeBinaryFiles.GetHashCode();
         hashCode = (hashCode * 17) ^ MaxSubfolderDepth.GetHashCode();
         hashCode = (hashCode * 17) ^ UseGitignore.GetHashCode();
         hashCode = (hashCode * 17) ^ IncludeArchive.GetHashCode();
         hashCode = (hashCode * 17) ^ FollowSymlinks.GetHashCode();
         hashCode = (hashCode * 17) ^ CodePage.GetHashCode();
         return(hashCode);
     }
 }
示例#2
0
 public override int GetHashCode()
 {
     unchecked
     {
         return((Text.GetHashCode() * 397) ^ CaseSensitive.GetHashCode() ^ ColumnFilters.GetHashCode());
     }
 }
示例#3
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = 13;
         hashCode = (hashCode * 17) ^ TypeOfFileSearch.GetHashCode();
         hashCode = (hashCode * 17) ^ FilePattern?.GetHashCode() ?? 5;
         hashCode = (hashCode * 17) ^ IgnoreFilePattern?.GetHashCode() ?? 5;
         hashCode = (hashCode * 17) ^ TypeOfSearch.GetHashCode();
         hashCode = (hashCode * 17) ^ SearchFor?.GetHashCode() ?? 5;
         hashCode = (hashCode * 17) ^ ReplaceWith?.GetHashCode() ?? 5;
         hashCode = (hashCode * 17) ^ CaseSensitive.GetHashCode();
         hashCode = (hashCode * 17) ^ WholeWord.GetHashCode();
         hashCode = (hashCode * 17) ^ Multiline.GetHashCode();
         hashCode = (hashCode * 17) ^ Singleline.GetHashCode();
         hashCode = (hashCode * 17) ^ BooleanOperators.GetHashCode();
         hashCode = (hashCode * 17) ^ IncludeSubfolders.GetHashCode();
         hashCode = (hashCode * 17) ^ IncludeHidden.GetHashCode();
         hashCode = (hashCode * 17) ^ IncludeBinary.GetHashCode();
         hashCode = (hashCode * 17) ^ MaxSubfolderDepth.GetHashCode();
         hashCode = (hashCode * 17) ^ UseGitignore.GetHashCode();
         hashCode = (hashCode * 17) ^ SkipRemoteCloudStorageFiles.GetHashCode();
         hashCode = (hashCode * 17) ^ IncludeArchive.GetHashCode();
         hashCode = (hashCode * 17) ^ FollowSymlinks.GetHashCode();
         hashCode = (hashCode * 17) ^ CodePage.GetHashCode();
         hashCode = (hashCode * 17) ^ ApplyFileSourceFilters.GetHashCode();
         hashCode = (hashCode * 17) ^ ApplyFilePropertyFilters.GetHashCode();
         hashCode = (hashCode * 17) ^ ApplyContentSearchFilters.GetHashCode();
         return(hashCode);
     }
 }
示例#4
0
 public override int GetHashCode()
 {
     unchecked
     {
         int result = Text == null ? 0 : Text.GetHashCode();
         result = (result * 397) ^ CaseSensitive.GetHashCode();
         result = (result * 397) ^ ColumnFilters.GetHashCode();
         result = (result * 397) ^ ColumnSorts.GetHashCode();
         return(result);
     }
 }
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Name != null ? Name.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ ColumnOrdinal;
         hashCode = (hashCode * 397) ^ (DataTypeName != null ? DataTypeName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ PrimaryKey.GetHashCode();
         hashCode = (hashCode * 397) ^ Generated.GetHashCode();
         hashCode = (hashCode * 397) ^ CaseSensitive.GetHashCode();
         return(hashCode);
     }
 }
示例#6
0
 /// <summary>
 ///   Serves as a hash function for a particular type.
 /// </summary>
 /// <returns>
 ///   A hash code for the current <see cref = "T:System.Object" />.
 /// </returns>
 /// <filterpriority>2</filterpriority>
 public override int GetHashCode()
 {
     unchecked
     {
         int result = FilterType.GetHashCode();
         result = (result * 397) ^ ApplyToFileName.GetHashCode();
         result = (result * 397) ^ ApplyToPath.GetHashCode();
         result = (result * 397) ^ ApplyToFile.GetHashCode();
         result = (result * 397) ^ ApplyToDirectory.GetHashCode();
         result = (result * 397) ^ CaseSensitive.GetHashCode();
         result = (result * 397) ^ (_text != null ? _text.GetHashCode() : 0);
         return(result);
     }
 }
示例#7
0
 private int GetSearchHash()
 {
     unchecked
     {
         int hashCode = 13;
         hashCode = (hashCode * 397) ^ SampleText?.GetHashCode() ?? 5;
         hashCode = (hashCode * 397) ^ SearchFor?.GetHashCode() ?? 5;
         hashCode = (hashCode * 397) ^ TypeOfSearch.GetHashCode();
         hashCode = (hashCode * 397) ^ CaseSensitive.GetHashCode();
         hashCode = (hashCode * 397) ^ WholeWord.GetHashCode();
         hashCode = (hashCode * 397) ^ Multiline.GetHashCode();
         hashCode = (hashCode * 397) ^ Singleline.GetHashCode();
         hashCode = (hashCode * 397) ^ BooleanOperators.GetHashCode();
         hashCode = (hashCode * 397) ^ HighlightCaptureGroups.GetHashCode();
         return(hashCode);
     }
 }