public override int GetHashCode()
        {
            int hash = 1;

            if (EventName.Length != 0)
            {
                hash ^= EventName.GetHashCode();
            }
            if (Min != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Min);
            }
            if (Max != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Max);
            }
            if (Average != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Average);
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
 public override int GetHashCode()
 {
     unchecked
     {
         return((Reference.GetHashCode() * 397) ^ EventName.GetHashCode());
     }
 }
示例#3
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (TicketEventID != null)
         {
             hashCode = hashCode * 59 + TicketEventID.GetHashCode();
         }
         if (EventName != null)
         {
             hashCode = hashCode * 59 + EventName.GetHashCode();
         }
         if (EventHtmlDescription != null)
         {
             hashCode = hashCode * 59 + EventHtmlDescription.GetHashCode();
         }
         if (EventImagePath != null)
         {
             hashCode = hashCode * 59 + EventImagePath.GetHashCode();
         }
         return(hashCode);
     }
 }
示例#4
0
        public override int GetHashCode()
        {
            int hashCode = -1860921451;

            hashCode = hashCode * -1521134295 + TransportEvent.GetHashCode();
            hashCode = hashCode * -1521134295 + SocketIOEvent.GetHashCode();
            hashCode = hashCode * -1521134295 + Id.GetHashCode();

            if (Namespace != null)
            {
                hashCode = hashCode * -1521134295 + Namespace.GetHashCode();
            }

            if (EventName != null)
            {
                hashCode = hashCode * -1521134295 + EventName.GetHashCode();
            }

            if (DecodedArgs != null)
            {
                hashCode = hashCode * -1521134295 + DecodedArgs.GetHashCode();
            }

            if (DecodedArg != null)
            {
                hashCode = hashCode * -1521134295 + DecodedArg.GetHashCode();
            }

            return(hashCode);
        }
示例#5
0
 public override int GetHashCode()
 {
     unchecked
     {
         return(((EventName != null ? EventName.GetHashCode() : 0) * 397) ^ (EventHandler != null ? EventHandler.GetHashCode() : 0));
     }
 }
示例#6
0
 public override int GetHashCode()
 {
     return(EventName.GetHashCode()
            ^ ApplicationName.GetHashCode()
            ^ ApplicationVersion.GetHashCode()
            ^ FaultingModule.GetHashCode()
            ^ FaultingModuleVersion.GetHashCode());
 }
示例#7
0
        public override int GetHashCode()
        {
            int hash = 13;

            hash = (hash * 7) + EventDateTime.GetHashCode();
            hash = (hash * 7) + EventName.GetHashCode();
            return(hash);
        }
示例#8
0
        public override int GetHashCode()
        {
            unchecked
            {
                var hashCode = DestinationScreen != null?DestinationScreen.GetHashCode() : 0;

                hashCode = (hashCode * 397) ^ (EventName != null ? EventName.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (DisplayName != null ? DisplayName.GetHashCode() : 0);
                return(hashCode);
            }
        }
示例#9
0
        public override int GetHashCode()
        {
            //get hash of all the fields & combine them
            var hash1 = _name.GetHashCode();
            var hash2 = Tools.GetHashCode(_description);
            var hash3 = _nature.GetHashCode();
            var hash4 = _startTime.GetHashCode();
            var hash5 = _endTime.GetHashCode();

            return(hash1 + hash2 + hash3 + hash4 + hash5);
        }
示例#10
0
    public override int GetHashCode()
    {
        int hashcode = 157;

        unchecked {
            if (__isset.eventName)
            {
                hashcode = (hashcode * 397) + EventName.GetHashCode();
            }
            if (__isset.eventAmount)
            {
                hashcode = (hashcode * 397) + EventAmount.GetHashCode();
            }
        }
        return(hashcode);
    }
示例#11
0
    public bool Equals(CSVEvent other)
    {
        //Check whether the compared object is null.
        if (Object.ReferenceEquals(other, null))
        {
            return(false);
        }

        //Check whether the compared object references the same data.
        if (Object.ReferenceEquals(this, other))
        {
            return(true);
        }

        return(EventName.GetHashCode() == other.GetHashCode());
    }
示例#12
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (EventName.Length != 0)
            {
                hash ^= EventName.GetHashCode();
            }
            if (EventTimestamp != 0L)
            {
                hash ^= EventTimestamp.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (ChaincodeId.Length != 0)
            {
                hash ^= ChaincodeId.GetHashCode();
            }
            if (TxId.Length != 0)
            {
                hash ^= TxId.GetHashCode();
            }
            if (EventName.Length != 0)
            {
                hash ^= EventName.GetHashCode();
            }
            if (Payload.Length != 0)
            {
                hash ^= Payload.GetHashCode();
            }
            return(hash);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (EventName.Length != 0)
            {
                hash ^= EventName.GetHashCode();
            }
            if (Location.Length != 0)
            {
                hash ^= Location.GetHashCode();
            }
            if (eventTime_ != null)
            {
                hash ^= EventTime.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
 public override int GetHashCode()
 {
     return(string.Format("{0}_{1}_{2}_{3}", EventName.GetHashCode(), EventVersion.GetHashCode(),
                          Notes.GetHashCode(), Filter.GetHashCode()).GetHashCode());
 }
示例#16
0
 public override int GetHashCode()
 {
     return(EventName != null?EventName.GetHashCode() : 0);
 }
示例#17
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (TicketEventDateID != null)
         {
             hashCode = hashCode * 59 + TicketEventDateID.GetHashCode();
         }
         if (TicketEventID != null)
         {
             hashCode = hashCode * 59 + TicketEventID.GetHashCode();
         }
         if (EventName != null)
         {
             hashCode = hashCode * 59 + EventName.GetHashCode();
         }
         if (EventHtmlDescription != null)
         {
             hashCode = hashCode * 59 + EventHtmlDescription.GetHashCode();
         }
         if (EventImagePath != null)
         {
             hashCode = hashCode * 59 + EventImagePath.GetHashCode();
         }
         if (VenueID != null)
         {
             hashCode = hashCode * 59 + VenueID.GetHashCode();
         }
         if (VenueName != null)
         {
             hashCode = hashCode * 59 + VenueName.GetHashCode();
         }
         if (Address != null)
         {
             hashCode = hashCode * 59 + Address.GetHashCode();
         }
         if (City != null)
         {
             hashCode = hashCode * 59 + City.GetHashCode();
         }
         if (Country != null)
         {
             hashCode = hashCode * 59 + Country.GetHashCode();
         }
         if (EventStartDateTime != null)
         {
             hashCode = hashCode * 59 + EventStartDateTime.GetHashCode();
         }
         if (MaxTickets != null)
         {
             hashCode = hashCode * 59 + MaxTickets.GetHashCode();
         }
         if (Price != null)
         {
             hashCode = hashCode * 59 + Price.GetHashCode();
         }
         return(hashCode);
     }
 }
示例#18
0
 public override int GetHashCode()
 {
     return(EventName.GetHashCode());
 }
示例#19
0
 public override int GetHashCode()
 {
     return(Reason.GetHashCode() * (!string.IsNullOrEmpty(PlayerId) ? PlayerId.GetHashCode() : 10) * (!string.IsNullOrEmpty(TargetId) ? TargetId.GetHashCode() : 11)
            * (!string.IsNullOrEmpty(SkillName) ? SkillName.GetHashCode() : 12) * (!string.IsNullOrEmpty(EventName) ? EventName.GetHashCode() : 13));
 }
示例#20
0
 public override int GetHashCode()
 {
     return(EventName.GetHashCode() + RoundNum + FlightNum);
 }
示例#21
0
 /// <summary>
 /// Returns the hash code for this event.
 /// </summary>
 /// <returns>A 32-bit signed integer hash code.</returns>
 public override int GetHashCode() => Hash.Combine(SourceName?.GetHashCode() ?? 0, EventName?.GetHashCode() ?? 0);