示例#1
0
 protected override void WriteData(AcnBinaryWriter data)
 {
     data.Write(LeaderId.ToByteArray());
     data.WriteOctet(ChannelNumber);
     data.WriteOctet(MemberId);
     data.WriteOctet(ReliableSequenceNumber);
     data.WriteOctet(ReciprocalChannel);
 }
示例#2
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);
     }
 }
示例#3
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);
    }