public override int GetHashCode() { unchecked { var hashCode = base.GetHashCode(); hashCode = (hashCode * 397) ^ (SourceId.GetHashCode()); hashCode = (hashCode * 397) ^ (CommandText.GetHashCode()); return(hashCode); } }
public override int GetHashCode() { unchecked // Overflow is fine, just wrap { var hash = (int)2166136261; hash = (hash * 16777619) ^ ConnectionString.GetHashCode(); hash = (hash * 16777619) ^ CommandText.GetHashCode(); hash = (hash * 16777619) ^ CommandType.GetHashCode(); foreach (var parameter in Parameters) { hash = (hash * 16777619) ^ parameter.GetHashCode(); } return(hash); } }
public override int GetHashCode() { return(CommandText != null ? CommandText.GetHashCode() : 0); }
/// <summary> /// Returns a hash code for this instance. /// </summary> /// <returns> /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. /// </returns> public override int GetHashCode() => CommandText.GetHashCode() ^ Arguments.GetHashCode();
public override int GetHashCode() { return(CommandText.GetHashCode()); }