public override int GetHashCode() { int hash = 1; if (ErrorId != 0) { hash ^= ErrorId.GetHashCode(); } if (ErrorString.Length != 0) { hash ^= ErrorString.GetHashCode(); } return(hash); }
/// <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 (ErrorId != null) { hashCode = hashCode * 59 + ErrorId.GetHashCode(); } if (Errors != null) { hashCode = hashCode * 59 + Errors.GetHashCode(); } return(hashCode); } }
public override int GetHashCode() { int hash = 1; if (ErrorId != 0) { hash ^= ErrorId.GetHashCode(); } if (ErrorMsg.Length != 0) { hash ^= ErrorMsg.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (Width != 0) { hash ^= Width.GetHashCode(); } if (Height != 0) { hash ^= Height.GetHashCode(); } if (ChannelCount != 0) { hash ^= ChannelCount.GetHashCode(); } if (Raw.Length != 0) { hash ^= Raw.GetHashCode(); } hash ^= rois_.GetHashCode(); if (SolutionId != 0) { hash ^= SolutionId.GetHashCode(); } if (ErrorId != 0) { hash ^= ErrorId.GetHashCode(); } if (Key.Length != 0) { hash ^= Key.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }