/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { int hash = 41; // Suitable nullity checks hash = hash * 59 + Id.GetHashCode(); if (ContextName != null) { hash = hash * 59 + ContextName.GetHashCode(); } hash = hash * 59 + IsDefault.GetHashCode(); if (CodeName != null) { hash = hash * 59 + CodeName.GetHashCode(); } if (Value != null) { hash = hash * 59 + Value.GetHashCode(); } if (DisplaySortOrder != null) { hash = hash * 59 + DisplaySortOrder.GetHashCode(); } return(hash); } }
public override int GetHashCode() { unchecked { int hashCode = TableName.GetHashCode(); hashCode = (hashCode * 397) ^ CodeName.GetHashCode(); return(hashCode); } }
public override int GetHashCode() { int hash = 1; if (Bootloader.Length != 0) { hash ^= Bootloader.GetHashCode(); } if (ProcVersion.Length != 0) { hash ^= ProcVersion.GetHashCode(); } if (CodeName.Length != 0) { hash ^= CodeName.GetHashCode(); } if (Incremental.Length != 0) { hash ^= Incremental.GetHashCode(); } if (Fingerprint.Length != 0) { hash ^= Fingerprint.GetHashCode(); } if (BootID.Length != 0) { hash ^= BootID.GetHashCode(); } if (AndroidID.Length != 0) { hash ^= AndroidID.GetHashCode(); } if (BaseBand.Length != 0) { hash ^= BaseBand.GetHashCode(); } if (InnerVersion.Length != 0) { hash ^= InnerVersion.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { return(CodeName.GetHashCode()); }