private void CalculateHashCode() { _hashValue = base.GetHashCode(); if (_credential != null) { unchecked { _hashValue = _hashValue * 17 + _credential.GetHashCode(); } } else if (_accessToken != null) { unchecked { _hashValue = _hashValue * 17 + _accessToken.GetHashCode(); } } if (_originalNetworkAddressInfo != null) { unchecked { _hashValue = _hashValue * 17 + _originalNetworkAddressInfo.GetHashCode(); } } }
private void CalculateHashCode() { _hashValue = base.GetHashCode(); if (_credential != null) { unchecked { _hashValue = _hashValue * 17 + _credential.GetHashCode(); } } else if (_accessToken != null) { unchecked { _hashValue = _hashValue * 17 + _accessToken.GetHashCode(); } } }