예제 #1
0
 public override int GetHashCode()
 {
     return(unchecked (
                331 * Suit.GetHashCode()
                + 617 * Value.GetHashCode()
                ));
 }
예제 #2
0
 public override int GetHashCode()
 {
     return(CardValue.GetHashCode() +
            CardSuit.GetHashCode() +
            Visibility.GetHashCode() +
            PileId.GetHashCode() +
            Owner.GetHashCode());
 }
예제 #3
0
파일: Card.cs 프로젝트: eserozvataf/poker
        public static int GetHashCode(CardType cardType, CardValue cardValue, byte series)
        {
            unchecked {
                int _hash = 17;
                _hash = _hash * 23 + cardType.GetHashCode();
                _hash = _hash * 23 + cardValue.GetHashCode();
                _hash = _hash * 23 + series.GetHashCode();

                return(_hash);
            }
        }
예제 #4
0
파일: Card.cs 프로젝트: detmach/SharpIrcBot
 public override int GetHashCode()
 {
     return(Color.GetHashCode() + 5 * Value.GetHashCode());
 }
예제 #5
0
 public override int GetHashCode()
 {
     return(Suit.GetHashCode() * 7 + Value.GetHashCode());
 }