Esempio n. 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = FailedAt.GetHashCode();
         hashCode = (hashCode * 397) ^ ExceptionMessage.GetHashCode();
         hashCode = (hashCode * 397) ^ StackTrace.GetHashCode();
         hashCode = (hashCode * 397) ^ (InnerException != null ? InnerException.GetHashCode() : 0);
         return hashCode;
     }
 }
Esempio n. 2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Source != null ? Source.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (MessageType != null ? MessageType.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ExceptionType != null ? ExceptionType.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ExceptionMessage != null ? ExceptionMessage.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ExceptionText != null ? ExceptionText.GetHashCode() : 0);
         return(hashCode);
     }
 }
Esempio n. 3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ExceptionMessage.Length != 0)
            {
                hash ^= ExceptionMessage.GetHashCode();
            }
            if (ExceptionId.Length != 0)
            {
                hash ^= ExceptionId.GetHashCode();
            }
            if (timestamp_ != null)
            {
                hash ^= Timestamp.GetHashCode();
            }
            return(hash);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (user_ != null)
            {
                hash ^= User.GetHashCode();
            }
            if (ExceptionMessage.Length != 0)
            {
                hash ^= ExceptionMessage.GetHashCode();
            }
            if (ExceptionId.Length != 0)
            {
                hash ^= ExceptionId.GetHashCode();
            }
            if (JWToken.Length != 0)
            {
                hash ^= JWToken.GetHashCode();
            }
            return(hash);
        }