예제 #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (UserId != 0)
            {
                hash ^= UserId.GetHashCode();
            }
            if (UserName.Length != 0)
            {
                hash ^= UserName.GetHashCode();
            }
            if (UserHead != 0)
            {
                hash ^= UserHead.GetHashCode();
            }
            if (LastLoginTime != 0L)
            {
                hash ^= LastLoginTime.GetHashCode();
            }
            if (CardNum != 0)
            {
                hash ^= CardNum.GetHashCode();
            }
            if (DepartmentLevel != 0)
            {
                hash ^= DepartmentLevel.GetHashCode();
            }
            return(hash);
        }
예제 #2
0
 public static CardNumF g(CardNum c)
 {
     if (!map.ContainsKey(c))
     {
         map.Add(c, new CardNumF(c));
     }
     return(map[c]);
 }
예제 #3
0
 protected override int GetHashCodeCore()
 {
     unchecked
     {
         int hashCode = IP.GetHashCode();
         hashCode = (hashCode * 397) ^ CardNum.GetHashCode();
         return(hashCode);
     }
 }
예제 #4
0
 public Card(Suit suit, CardNum cardNum)
 {
     _Suit       = suit;
     _CardNumber = cardNum;
 }
예제 #5
0
 public static string getUid(Flower f, CardNum c)
 {
     return(f.ToString() + c.ToString());
 }
예제 #6
0
파일: Cards.cs 프로젝트: DreamNex/Pokergame
 public void CopyCard(Cards ccard)
 {
     this.suit = ccard.suit;
     this.Cn   = ccard.Cn;
 }
예제 #7
0
 private CardNumF(CardNum n)
 {
     this.n = n;
 }