/// <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 (Name != null) { hashCode = hashCode * 59 + Name.GetHashCode(); } if (Optional != null) { hashCode = hashCode * 59 + Optional.GetHashCode(); } if (IsSet != null) { hashCode = hashCode * 59 + IsSet.GetHashCode(); } if (Type != null) { hashCode = hashCode * 59 + Type.GetHashCode(); } if (Value != null) { hashCode = hashCode * 59 + Value.GetHashCode(); } if (Description != null) { hashCode = hashCode * 59 + Description.GetHashCode(); } return(hashCode); } }
/// <inheritdoc /> public override int GetHashCode() { var hash = 17; hash = (hash * 23) + IsSet.GetHashCode(); hash = (hash * 23) + Value.GetHashCode(); return(hash); }
public override int GetHashCode() { unchecked { var hashCode = (Id != null ? Id.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Position != null ? Position.GetHashCode() : 0); hashCode = (hashCode * 397) ^ IsSet.GetHashCode(); return(hashCode); } }
/// <inheritdoc /> public override int GetHashCode() { unchecked { int hashCode = IsSet.GetHashCode(); hashCode = (hashCode * 397) ^ (BanPhoneMask != null ? BanPhoneMask.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (PreBanMessage != null ? PreBanMessage.GetHashCode() : 0); return(hashCode); } }
public override int GetHashCode() { int hash = 1; if (IsSet != false) { hash ^= IsSet.GetHashCode(); } hash ^= shapeAndType_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }