Beispiel #1
0
 public override int GetHashCode()
 {
     unchecked {
         var hashCode = StartPosition.GetHashCode();
         hashCode = (hashCode * 397) ^ EndPosition.GetHashCode();
         hashCode = (hashCode * 397) ^ Piece.GetHashCode();
         hashCode = (hashCode * 397) ^ Captured.GetHashCode();
         hashCode = (hashCode * 397) ^ (int)MoveType;
         return(hashCode);
     }
 }
Beispiel #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (sale_ != null)
            {
                hash ^= Sale.GetHashCode();
            }
            if (card_ != null)
            {
                hash ^= Card.GetHashCode();
            }
            if (Purpose != 0)
            {
                hash ^= Purpose.GetHashCode();
            }
            if (SaleState != 0)
            {
                hash ^= SaleState.GetHashCode();
            }
            if (openAuthorized_ != null)
            {
                hash ^= OpenAuthorized.GetHashCode();
            }
            if (captured_ != null)
            {
                hash ^= Captured.GetHashCode();
            }
            if (EntryMethod != 0)
            {
                hash ^= EntryMethod.GetHashCode();
            }
            if (authorizedAt_ != null)
            {
                hash ^= AuthorizedAt.GetHashCode();
            }
            if (capturedAt_ != null)
            {
                hash ^= CapturedAt.GetHashCode();
            }
            if (ApplicationLabel.Length != 0)
            {
                hash ^= ApplicationLabel.GetHashCode();
            }
            if (AID.Length != 0)
            {
                hash ^= AID.GetHashCode();
            }
            if (ApplicationCrypto.Length != 0)
            {
                hash ^= ApplicationCrypto.GetHashCode();
            }
            if (ApprovalCode.Length != 0)
            {
                hash ^= ApprovalCode.GetHashCode();
            }
            if (receivedBy_ != null)
            {
                hash ^= ReceivedBy.GetHashCode();
            }
            if (finalAuthorizedAmount_ != null)
            {
                hash ^= FinalAuthorizedAmount.GetHashCode();
            }
            return(hash);
        }