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); }
public static CardNumF g(CardNum c) { if (!map.ContainsKey(c)) { map.Add(c, new CardNumF(c)); } return(map[c]); }
protected override int GetHashCodeCore() { unchecked { int hashCode = IP.GetHashCode(); hashCode = (hashCode * 397) ^ CardNum.GetHashCode(); return(hashCode); } }
public Card(Suit suit, CardNum cardNum) { _Suit = suit; _CardNumber = cardNum; }
public static string getUid(Flower f, CardNum c) { return(f.ToString() + c.ToString()); }
public void CopyCard(Cards ccard) { this.suit = ccard.suit; this.Cn = ccard.Cn; }
private CardNumF(CardNum n) { this.n = n; }