public override int GetHashCode() { unchecked { int result = (m_ObjPropertyCollection != null ? m_ObjPropertyCollection.GetHashCode() : 0); result = (result * 397) ^ (CharacterSet != null ? CharacterSet.GetHashCode() : 0); result = (result * 397) ^ (ContentEncoding != null ? ContentEncoding.GetHashCode() : 0); result = (result * 397) ^ (ContentType != null ? ContentType.GetHashCode() : 0); result = (result * 397) ^ (Headers != null ? Headers.GetHashCode() : 0); result = (result * 397) ^ IsFromCache.GetHashCode(); result = (result * 397) ^ IsMutuallyAuthenticated.GetHashCode(); result = (result * 397) ^ LastModified.GetHashCode(); result = (result * 397) ^ (Method != null ? Method.GetHashCode() : 0); result = (result * 397) ^ (OriginalReferrerUrl != null ? OriginalReferrerUrl.GetHashCode() : 0); result = (result * 397) ^ (OriginalUrl != null ? OriginalUrl.GetHashCode() : 0); result = (result * 397) ^ (ProtocolVersion != null ? ProtocolVersion.GetHashCode() : 0); result = (result * 397) ^ (Referrer != null ? Referrer.GetHashCode() : 0); result = (result * 397) ^ (ResponseUri != null ? ResponseUri.GetHashCode() : 0); result = (result * 397) ^ (Server != null ? Server.GetHashCode() : 0); result = (result * 397) ^ StatusCode.GetHashCode(); result = (result * 397) ^ (StatusDescription != null ? StatusDescription.GetHashCode() : 0); result = (result * 397) ^ (Step != null ? Step.GetHashCode() : 0); result = (result * 397) ^ (Text != null ? Text.GetHashCode() : 0); result = (result * 397) ^ (Title != null ? Title.GetHashCode() : 0); result = (result * 397) ^ DownloadTime.GetHashCode(); return(result); } }
/// <summary> /// Computes the hash code for the current metadata object. /// </summary> /// <returns> /// The hash code for the current metadata object, extracted from a combination /// of hashes for the device name and various version numbers. /// </returns> public override int GetHashCode() { return(17 * DeviceName.GetHashCode() + 8971 * FirmwareVersion.GetHashCode() + 2803 * ProtocolVersion.GetHashCode() + 691 * HardwareVersion.GetHashCode() + 1409 * AssemblyNumber.GetHashCode() + 2333 * PrereleaseVersion.GetHashCode()); }
public override int GetHashCode() { int hash = 1; if (ProtocolVersion != 0) { hash ^= ProtocolVersion.GetHashCode(); } if (SpawnCount != 0) { hash ^= SpawnCount.GetHashCode(); } if (ClientDllMd5.Length != 0) { hash ^= ClientDllMd5.GetHashCode(); } if (MaxClients != 0) { hash ^= MaxClients.GetHashCode(); } if (GameName.Length != 0) { hash ^= GameName.GetHashCode(); } if (HostName.Length != 0) { hash ^= HostName.GetHashCode(); } if (GameInfo.Length != 0) { hash ^= GameInfo.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (ProtocolVersion != 0) { hash ^= ProtocolVersion.GetHashCode(); } if (MessageType != 0) { hash ^= MessageType.GetHashCode(); } if (Side != 0) { hash ^= Side.GetHashCode(); } if (StartRow != 0) { hash ^= StartRow.GetHashCode(); } if (StartCol != 0) { hash ^= StartCol.GetHashCode(); } if (EndRow != 0) { hash ^= EndRow.GetHashCode(); } if (EndCol != 0) { hash ^= EndCol.GetHashCode(); } if (GameOutcome != 0) { hash ^= GameOutcome.GetHashCode(); } return(hash); }