Exemple #1
0
 /// <inheritdoc />
 public override int GetHashCode()
 {
     unchecked {
         var hashCode = (int)ErrorCode;
         hashCode = (hashCode * 397) ^ GenerationId;
         hashCode = (hashCode * 397) ^ (GroupProtocol?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (LeaderId?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (MemberId?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (Members?.GetHashCode() ?? 0);
         return(hashCode);
     }
 }
Exemple #2
0
    public override int GetHashCode()
    {
        int hash = 1;

        if (TeamId.Length != 0)
        {
            hash ^= TeamId.GetHashCode();
        }
        if (LeaderId.Length != 0)
        {
            hash ^= LeaderId.GetHashCode();
        }
        hash ^= members_.GetHashCode();
        if (Status != 0)
        {
            hash ^= Status.GetHashCode();
        }
        if (_unknownFields != null)
        {
            hash ^= _unknownFields.GetHashCode();
        }
        return(hash);
    }