public override int GetHashCode() { int hash = 1; if (HostName.Length != 0) hash ^= HostName.GetHashCode(); if (HostIp.Length != 0) hash ^= HostIp.GetHashCode(); if (ProcessId != 0) hash ^= ProcessId.GetHashCode(); if (NodeName.Length != 0) hash ^= NodeName.GetHashCode(); if (NodeId != 0UL) hash ^= NodeId.GetHashCode(); if (ChannelName.Length != 0) hash ^= ChannelName.GetHashCode(); if (ChannelId != 0UL) hash ^= ChannelId.GetHashCode(); if (MessageType.Length != 0) hash ^= MessageType.GetHashCode(); if (ProtoDesc.Length != 0) hash ^= ProtoDesc.GetHashCode(); if (Id != 0UL) hash ^= Id.GetHashCode(); if (qosProfile_ != null) hash ^= QosProfile.GetHashCode(); if (socketAddr_ != null) hash ^= SocketAddr.GetHashCode(); if (ServiceName.Length != 0) hash ^= ServiceName.GetHashCode(); if (ServiceId != 0UL) hash ^= ServiceId.GetHashCode(); return hash; }
public override int GetHashCode() { int hash = 1; if (Name.Length != 0) { hash ^= Name.GetHashCode(); } if (Type != 0) { hash ^= Type.GetHashCode(); } if (TypeName.Length != 0) { hash ^= TypeName.GetHashCode(); } if (oneofValueCase_ == OneofValueOneofCase.BoolValue) { hash ^= BoolValue.GetHashCode(); } if (oneofValueCase_ == OneofValueOneofCase.IntValue) { hash ^= IntValue.GetHashCode(); } if (oneofValueCase_ == OneofValueOneofCase.DoubleValue) { hash ^= DoubleValue.GetHashCode(); } if (oneofValueCase_ == OneofValueOneofCase.StringValue) { hash ^= StringValue.GetHashCode(); } if (ProtoDesc.Length != 0) { hash ^= ProtoDesc.GetHashCode(); } hash ^= (int)oneofValueCase_; return(hash); }