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 { return(((Include != null ? Include.GetHashCode() : 0) * 397) ^ (Exclude != null ? Exclude.GetHashCode() : 0)); } }
public override int GetHashCode() { unchecked { var hashCode = (Exclude != null ? Exclude.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Include != null ? Include.GetHashCode() : 0); hashCode = (hashCode * 397) ^ Recurse.GetHashCode(); return(hashCode); } }
public override int GetHashCode() { unchecked { int result = (Include != null ? Include.GetHashCode() : 0); result = (result * 397) ^ (Exclude != null ? Exclude.GetHashCode() : 0); result = (result * 397) ^ DeepSearch.GetHashCode(); return(result); } }
public override int GetHashCode() { unchecked { var result = Include?.GetHashCode() ?? 0; result = (result * 397) ^ (Exclude?.GetHashCode() ?? 0); result = (result * 397) ^ DeepSearch.GetHashCode(); return(result); } }
public override int GetHashCode() { unchecked // Overflow is fine { int hash = 17; hash = hash * 23 + (Include != null ? Include.GetHashCode() : 0); hash = hash * 23 + (Tag != null ? Tag.GetHashCode() : 0); return(hash); } }
public override int GetHashCode() { unchecked { int hashCode = (Exclude != null ? Exclude.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Include != null ? Include.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Remove != null ? Remove.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Type != null ? Type.GetHashCode() : 0); return(hashCode); } }
/// <summary> /// Object hash code /// </summary> /// <returns></returns> public override int GetHashCode() { unchecked { var hashCode = FilterType != null?FilterType.GetHashCode() : 0; hashCode = (hashCode * 397) ^ (Include != null ? Include.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Exclude != null ? Exclude.GetHashCode() : 0); return(hashCode); } }
/// <summary> /// Serves as a hash function for a particular type. /// </summary> /// <returns> /// A hash code for the current <see cref="T:System.Object"/>. /// </returns> public override int GetHashCode() { unchecked { var hashCode = Name?.GetHashCode() ?? 0; hashCode = (hashCode * 397) ^ (Description?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Image?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Url?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Tags?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ Created.GetHashCode(); hashCode = (hashCode * 397) ^ Modified.GetHashCode(); hashCode = (hashCode * 397) ^ (SpecificationVersion?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Apis?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Include?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Maintainers?.GetHashCode() ?? 0); return(hashCode); } }
/// <summary> /// Serves as a hash function for a particular type. /// </summary> /// <returns> /// A hash code for the current <see cref="T:System.Object"/>. /// </returns> public override int GetHashCode() { unchecked { var hashCode = (Name != null ? Name.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Description != null ? Description.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Image != null ? Image.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Url != null ? Url.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Tags != null ? Tags.GetHashCode() : 0); hashCode = (hashCode * 397) ^ Created.GetHashCode(); hashCode = (hashCode * 397) ^ Modified.GetHashCode(); hashCode = (hashCode * 397) ^ (SpecificationVersion != null ? SpecificationVersion.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Apis != null ? Apis.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Include != null ? Include.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Maintainers != null ? Maintainers.GetHashCode() : 0); return(hashCode); } }
public override int GetHashCode() { return(Include?.GetHashCode() ?? base.GetHashCode()); }
public override int GetHashCode() { return(((Include?.GetHashCode() ?? 0) * 397 ^ (Exclude?.GetHashCode() ?? 0)) * 397 ^ DeepSearch.GetHashCode()); }