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 UserDefinedTypeMemberCandidate(IEncapsulateFieldCandidate candidate, IUserDefinedTypeCandidate udtField) { WrappedCandidate = candidate; UDTField = udtField; PropertyIdentifier = IdentifierName; BackingIdentifier = IdentifierName; _hashCode = TargetID.GetHashCode(); }
public override int GetHashCode() { int hash = 1; if (TargetID != 0) { hash ^= TargetID.GetHashCode(); } if (CardID != 0) { hash ^= CardID.GetHashCode(); } return(hash); }