Пример #1
0
 public override int GetHashCode()
 {
     unchecked {
         int hashCode = EventNumber.GetHashCode();
         hashCode = (hashCode * 397) ^ LogPosition.GetHashCode();
         hashCode = (hashCode * 397) ^ CorrelationId.GetHashCode();
         hashCode = (hashCode * 397) ^ EventId.GetHashCode();
         hashCode = (hashCode * 397) ^ TransactionPosition.GetHashCode();
         hashCode = (hashCode * 397) ^ TransactionOffset;
         hashCode = (hashCode * 397) ^ EventStreamId.GetHashCode();
         hashCode = (hashCode * 397) ^ ExpectedVersion.GetHashCode();
         hashCode = (hashCode * 397) ^ TimeStamp.GetHashCode();
         hashCode = (hashCode * 397) ^ Flags.GetHashCode();
         hashCode = (hashCode * 397) ^ EventType.GetHashCode();
         hashCode = (hashCode * 397) ^ Data.GetHashCode();
         hashCode = (hashCode * 397) ^ Metadata.GetHashCode();
         return(hashCode);
     }
 }
Пример #2
0
        public override int GetHashCode()
        {
            unchecked {
                int result = LogPosition.GetHashCode();
                result = (result * 397) ^ Flags.GetHashCode();
                result = (result * 397) ^ TransactionPosition.GetHashCode();
                result = (result * 397) ^ TransactionOffset;
                result = (result * 397) ^ ExpectedVersion.GetHashCode();
                result = (result * 397) ^ EventStreamId.GetHashCode();

                result = (result * 397) ^ EventId.GetHashCode();
                result = (result * 397) ^ CorrelationId.GetHashCode();
                result = (result * 397) ^ TimeStamp.GetHashCode();
                result = (result * 397) ^ EventType.GetHashCode();
                result = (result * 397) ^ Data.GetHashCode();
                result = (result * 397) ^ Metadata.GetHashCode();
                return(result);
            }
        }