public override int GetHashCode() { unchecked { var hashCode = Designation.GetHashCode(); hashCode = (hashCode * 397) ^ MeasurementMatchesRemaining; hashCode = (hashCode * 397) ^ PercentToNextTier.GetHashCode(); hashCode = (hashCode * 397) ^ Rank.GetHashCode(); hashCode = (hashCode * 397) ^ Raw.GetHashCode(); hashCode = (hashCode * 397) ^ Tier.GetHashCode(); return(hashCode); } }
public override int GetHashCode() { int hash = 1; if (debitAmount_ != null) { hash ^= DebitAmount.GetHashCode(); } if (creditAmount_ != null) { hash ^= CreditAmount.GetHashCode(); } if (Narration.Length != 0) { hash ^= Narration.GetHashCode(); } if (account_ != null) { hash ^= Account.GetHashCode(); } if (AccountName.Length != 0) { hash ^= AccountName.GetHashCode(); } if (AccountType != 0) { hash ^= AccountType.GetHashCode(); } if (Designation != 0) { hash ^= Designation.GetHashCode(); } if (TransferIndication != 0) { hash ^= TransferIndication.GetHashCode(); } if (entityId_ != null) { hash ^= EntityId.GetHashCode(); } return(hash); }
public override int GetHashCode() { unchecked { // Choose large primes to avoid hashing collisions const int hashingBase = (int)2166136261; const int hashingMultiplier = 16777619; int hash = hashingBase; hash = (hash * hashingMultiplier) ^ (!Object.ReferenceEquals(null, Designation) ? Designation.GetHashCode() : 0); hash = (hash * hashingMultiplier) ^ (!Object.ReferenceEquals(null, BuildingNr) ? BuildingNr.GetHashCode() : 0); hash = (hash * hashingMultiplier) ^ (!Object.ReferenceEquals(null, RoomNr) ? RoomNr.GetHashCode() : 0); return(hash); } }