public override int GetHashCode() { unchecked { var hashCode = (Id != null ? Id.GetHashCode() : 0); hashCode = (hashCode * 397) ^ MaxRevisions; hashCode = (hashCode * 397) ^ Exclude.GetHashCode(); return(hashCode); } }
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 { 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 // Overflow is fine { int hash = 17; hash = hash * 23 + (Include != null ? Include.GetHashCode() : 0); hash = hash * 23 + (Exclude != null ? Exclude.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); } }
public override int GetHashCode() { unchecked { var hashCode = (ColumnInfo != null ? ColumnInfo.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (NewColumnName != null ? NewColumnName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ IsRowVersion.GetHashCode(); hashCode = (hashCode * 397) ^ PrimaryKey.GetHashCode(); hashCode = (hashCode * 397) ^ InsertIgnore.GetHashCode(); hashCode = (hashCode * 397) ^ (EnumDeclaration != null ? EnumDeclaration.GetHashCode() : 0); hashCode = (hashCode * 397) ^ Exclude.GetHashCode(); hashCode = (hashCode * 397) ^ (ForgeinKeyDeclarations != null ? ForgeinKeyDeclarations.GetHashCode() : 0); 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 (Exclude != null) { hashCode = hashCode * 59 + Exclude.GetHashCode(); } if (RestrictTo != null) { hashCode = hashCode * 59 + RestrictTo.GetHashCode(); } return(hashCode); } }
public override int GetHashCode() { unchecked { return(((Include != null ? Include.GetHashCode() : 0) * 397) ^ (Exclude != null ? Exclude.GetHashCode() : 0)); } }
public override int GetHashCode() { return(((Include?.GetHashCode() ?? 0) * 397 ^ (Exclude?.GetHashCode() ?? 0)) * 397 ^ DeepSearch.GetHashCode()); }