public override int GetHashCode() { int hash = 1; if (FromPlayerID != 0) { hash ^= FromPlayerID.GetHashCode(); } if (FromCardID != 0) { hash ^= FromCardID.GetHashCode(); } if (TargetID != 0) { hash ^= TargetID.GetHashCode(); } if (TargetCardID != 0) { hash ^= TargetCardID.GetHashCode(); } if (Result != 0) { hash ^= Result.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (FromPlayerID != 0) { hash ^= FromPlayerID.GetHashCode(); } if (Content.Length != 0) { hash ^= Content.GetHashCode(); } return(hash); }