PhoneNumbers.PhoneNumber.GetHashCode C# (CSharp) Method

GetHashCode() public method

public GetHashCode ( ) : int
return int
        public override int GetHashCode()
        {
            int hash = GetType().GetHashCode();
              if (hasCountryCode) hash ^= countryCode_.GetHashCode();
              if (hasNationalNumber) hash ^= nationalNumber_.GetHashCode();
              if (hasExtension) hash ^= extension_.GetHashCode();
              if (hasItalianLeadingZero) hash ^= italianLeadingZero_.GetHashCode();
              if (hasNumberOfLeadingZeros) hash ^= numberOfLeadingZeros_.GetHashCode();
              if (hasRawInput) hash ^= rawInput_.GetHashCode();
              if (hasCountryCodeSource) hash ^= countryCodeSource_.GetHashCode();
              if (hasPreferredDomesticCarrierCode) hash ^= preferredDomesticCarrierCode_.GetHashCode();
              return hash;
        }