public override int GetHashCode() { int hash = 1; if (UserId.Length != 0) { hash ^= UserId.GetHashCode(); } if (IpAddress.Length != 0) { hash ^= IpAddress.GetHashCode(); } if (UserAgent.Length != 0) { hash ^= UserAgent.GetHashCode(); } if (DirectUserRequest != false) { hash ^= DirectUserRequest.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (entityId_ != null) { hash ^= EntityId.GetHashCode(); } if (merchantId_ != null) { hash ^= MerchantId.GetHashCode(); } if (stationId_ != null) { hash ^= StationId.GetHashCode(); } if (Name.Length != 0) { hash ^= Name.GetHashCode(); } if (IpAddress.Length != 0) { hash ^= IpAddress.GetHashCode(); } if (Port != 0) { hash ^= Port.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (IpAddress.Length != 0) { hash ^= IpAddress.GetHashCode(); } if (Port != 0) { hash ^= Port.GetHashCode(); } if (Id.Length != 0) { hash ^= Id.GetHashCode(); } if (CountryCode.Length != 0) { hash ^= CountryCode.GetHashCode(); } if (AnonymousType.Length != 0) { hash ^= AnonymousType.GetHashCode(); } if (Type.Length != 0) { hash ^= Type.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { unchecked { return(((IpAddress != null ? IpAddress.GetHashCode() : 0) * 397) ^ Port); } }
public override int GetHashCode() { int hash = 1; if (Email.Length != 0) { hash ^= Email.GetHashCode(); } if (PhoneNumber.Length != 0) { hash ^= PhoneNumber.GetHashCode(); } if (IpAddress.Length != 0) { hash ^= IpAddress.GetHashCode(); } if (Enabled != false) { hash ^= Enabled.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { unchecked { return(((IpAddress?.GetHashCode() ?? 0) * 397) ^ Port); } }
/// <inheritdoc /> public override int GetHashCode() { unchecked { return((Name.GetHashCode() * 397) ^ IpAddress.GetHashCode()); } }
public override int GetHashCode() { unchecked { return(((IpAddress != null ? IpAddress.GetHashCode() : 0) * 397) ^ (SupportedVersion != null ? SupportedVersion.GetHashCode() : 0)); } }
public override int GetHashCode() { unchecked { var hashCode = ProcessorCount; hashCode = (hashCode * 397) ^ TotalPhysicalMemory.GetHashCode(); hashCode = (hashCode * 397) ^ (CommandLine?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (ProcessName?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (ProcessId?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Architecture?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (OSName?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (OSVersion?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (IpAddress?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (MachineName?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (InstallId?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (RuntimeVersion?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Data?.GetCollectionHashCode() ?? 0); return(hashCode); } }
public override int GetHashCode() { unchecked { var hashCode = ProcessorCount; hashCode = (hashCode * 397) ^ TotalPhysicalMemory.GetHashCode(); hashCode = (hashCode * 397) ^ (CommandLine == null ? 0 : CommandLine.GetHashCode()); hashCode = (hashCode * 397) ^ (ProcessName == null ? 0 : ProcessName.GetHashCode()); hashCode = (hashCode * 397) ^ (ProcessId == null ? 0 : ProcessId.GetHashCode()); hashCode = (hashCode * 397) ^ (Architecture == null ? 0 : Architecture.GetHashCode()); hashCode = (hashCode * 397) ^ (OSName == null ? 0 : OSName.GetHashCode()); hashCode = (hashCode * 397) ^ (OSVersion == null ? 0 :OSVersion.GetHashCode()); hashCode = (hashCode * 397) ^ (IpAddress == null ? 0 : IpAddress.GetHashCode()); hashCode = (hashCode * 397) ^ (MachineName == null ? 0 : MachineName.GetHashCode()); hashCode = (hashCode * 397) ^ (InstallId == null ? 0 : InstallId.GetHashCode()); hashCode = (hashCode * 397) ^ (RuntimeVersion == null ? 0 : RuntimeVersion.GetHashCode()); hashCode = (hashCode * 397) ^ (Data == null ? 0 : Data.GetCollectionHashCode()); return(hashCode); } }
public override int GetHashCode() { int hash = 1; if (IpAddress.Length != 0) { hash ^= IpAddress.GetHashCode(); } if (Port != 0) { hash ^= Port.GetHashCode(); } if (ServerName.Length != 0) { hash ^= ServerName.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
/// <summary> /// Returns the hashcode of this Object /// </summary> /// <returns>Hash code (int)</returns> public override int GetHashCode() { // Credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { int hash = 41; // Suitable nullity checks etc, of course :) if (Id != null) { hash = hash * 59 + Id.GetHashCode(); } if (LogMessageTypeId != null) { hash = hash * 59 + LogMessageTypeId.GetHashCode(); } if (ApplicationName != null) { hash = hash * 59 + ApplicationName.GetHashCode(); } if (ApplicationMethod != null) { hash = hash * 59 + ApplicationMethod.GetHashCode(); } if (IpAddress != null) { hash = hash * 59 + IpAddress.GetHashCode(); } if (LoginToken != null) { hash = hash * 59 + LoginToken.GetHashCode(); } if (ShortMessage != null) { hash = hash * 59 + ShortMessage.GetHashCode(); } if (RequestHttpMethod != null) { hash = hash * 59 + RequestHttpMethod.GetHashCode(); } if (RequestUri != null) { hash = hash * 59 + RequestUri.GetHashCode(); } if (RequestParams != null) { hash = hash * 59 + RequestParams.GetHashCode(); } if (RequestBody != null) { hash = hash * 59 + RequestBody.GetHashCode(); } if (StatusCode != null) { hash = hash * 59 + StatusCode.GetHashCode(); } if (ResponseContent != null) { hash = hash * 59 + ResponseContent.GetHashCode(); } if (FullMessage != null) { hash = hash * 59 + FullMessage.GetHashCode(); } if (Exception != null) { hash = hash * 59 + Exception.GetHashCode(); } if (Trace != null) { hash = hash * 59 + Trace.GetHashCode(); } if (Logged != null) { hash = hash * 59 + Logged.GetHashCode(); } return(hash); } }
public override int GetHashCode() => ItemNameDisplay.GetHashCode() + HostName.GetHashCode() + IpAddress.GetHashCode();
/// <summary> /// The method calculates the hash code for the current object. /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { return(IpAddress.GetHashCode() ^ Mask); }
public override int GetHashCode() { return(IpAddress.GetHashCode() + TcpPort.GetHashCode()); }
public override int GetHashCode() => IpAddress.GetHashCode() ^ MacAddress.GetHashCode();
public int GenerateId() => (!DeviceId.Equals(Utils.Common)) ? DeviceId.GetHashCode() : IpAddress.GetHashCode();