/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { var hash = 41; // Suitable nullity checks etc, of course :) if (Op != null) { hash = hash * 59 + Op.GetHashCode(); } if (Id != null) { hash = hash * 59 + Id.GetHashCode(); } if (Session != null) { hash = hash * 59 + Session.GetHashCode(); } if (AppKey != null) { hash = hash * 59 + AppKey.GetHashCode(); } return(hash); } }
public override int GetHashCode() { int hash = 1; if (AppId.Length != 0) { hash ^= AppId.GetHashCode(); } if (AppKey.Length != 0) { hash ^= AppKey.GetHashCode(); } if (AccountId.Length != 0) { hash ^= AccountId.GetHashCode(); } if (Token.Length != 0) { hash ^= Token.GetHashCode(); } if (GameType != 0) { hash ^= GameType.GetHashCode(); } return(hash); }