/// <summary> /// Gets the hash code for this object. /// </summary> /// <returns></returns> public override int GetHashCode() { int hashCode = 0; hashCode ^= DestinationAddress.GetHashCode(); hashCode ^= DestinationAddressNpi.GetHashCode(); hashCode ^= DestinationAddressTon.GetHashCode(); hashCode ^= ErrorStatusCode.GetHashCode(); return(hashCode); }
/// <summary> /// Gets the hash code for this object. /// </summary> /// <returns></returns> public override int GetHashCode() { int hashCode = 0; if (!IsDistributionList) { hashCode ^= DestAddress.GetHashCode(); hashCode ^= DestinationAddressNpi.GetHashCode(); hashCode ^= DestinationAddressTon.GetHashCode(); } else { hashCode ^= DistributionList.GetHashCode(); } return(hashCode); }