public override int GetHashCode() { int hash = 1; if (response_ != null) { hash ^= Response.GetHashCode(); } if (userCase_ == UserOneofCase.Coordinator) { hash ^= Coordinator.GetHashCode(); } if (userCase_ == UserOneofCase.Player) { hash ^= Player.GetHashCode(); } if (state_ != null) { hash ^= State.GetHashCode(); } if (ServerVersion != 0) { hash ^= ServerVersion.GetHashCode(); } hash ^= (int)userCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
/// <summary> /// This API supports the Entity Framework Core infrastructure and is not intended to be used /// directly from your code. This API may change or be removed in future releases. /// </summary> public override long GetServiceProviderHashCode() { if (_serviceProviderHash == null) { _serviceProviderHash = (base.GetServiceProviderHashCode() * 397) ^ (ServerVersion?.GetHashCode() ?? 0L); _serviceProviderHash = (_serviceProviderHash * 397) ^ (NullableCharSetBehavior?.GetHashCode() ?? 0L); _serviceProviderHash = (_serviceProviderHash * 397) ^ (AnsiCharSetInfo?.GetHashCode() ?? 0L); _serviceProviderHash = (_serviceProviderHash * 397) ^ (UnicodeCharSetInfo?.GetHashCode() ?? 0L); } return(_serviceProviderHash.Value); }
public override int GetHashCode() { unchecked { var hashCode = ConnectionSettings != null?ConnectionSettings.GetHashCode() : 0; hashCode = (hashCode * 397) ^ (ServerVersion != null ? ServerVersion.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (int)CharSetBehavior; hashCode = (hashCode * 397) ^ (CharSet != null ? CharSet.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (NationalCharSet != null ? NationalCharSet.GetHashCode() : 0); hashCode = (hashCode * 397) ^ NoBackslashEscapes.GetHashCode(); hashCode = (hashCode * 397) ^ ReplaceLineBreaksWithCharFunction.GetHashCode(); return(hashCode); } }