Ejemplo n.º 1
0
 /// <inheritdoc />
 public override int GetHashCode()
 {
     unchecked {
         int hashCode = ParticipantId.GetHashCode();
         hashCode = (hashCode * 397) ^ GX1.GetHashCode();
         hashCode = (hashCode * 397) ^ X1V.GetHashCode();
         hashCode = (hashCode * 397) ^ X1R.GetHashCode();
         hashCode = (hashCode * 397) ^ GX2.GetHashCode();
         hashCode = (hashCode * 397) ^ X2V.GetHashCode();
         hashCode = (hashCode * 397) ^ X2R.GetHashCode();
         return(hashCode);
     }
 }
Ejemplo n.º 2
0
 /// <inheritdoc />
 public bool Equals(ECJpakeRound1 other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return
         (String.Equals(ParticipantId, other.ParticipantId, StringComparison.Ordinal) &&
          GX1.SequenceEqualShortCircuiting(other.GX1) && X1V.SequenceEqualShortCircuiting(other.X1V) &&
          X1R.SequenceEqualShortCircuiting(other.X1R) &&
          GX2.SequenceEqualShortCircuiting(other.GX2) && X2V.SequenceEqualShortCircuiting(other.X2V) &&
          X2R.SequenceEqualShortCircuiting(other.X2R));
 }