Esempio n. 1
0
 public override int GetHashCode()
 {
     return(EventName.GetHashCode()
            ^ ApplicationName.GetHashCode()
            ^ ApplicationVersion.GetHashCode()
            ^ FaultingModule.GetHashCode()
            ^ FaultingModuleVersion.GetHashCode());
 }
Esempio n. 2
0
    public override int GetHashCode()
    {
        int hashcode = 157;

        unchecked {
            if (__isset.applicationType)
            {
                hashcode = (hashcode * 397) + ApplicationType.GetHashCode();
            }
            if (__isset.applicationVersion)
            {
                hashcode = (hashcode * 397) + ApplicationVersion.GetHashCode();
            }
            if (__isset.locale)
            {
                hashcode = (hashcode * 397) + Locale.GetHashCode();
            }
        }
        return(hashcode);
    }
Esempio n. 3
0
        /// <inheritdoc/>
        public override int GetHashCode()
        {
            // Overflow is fine, just wrap.
            unchecked
            {
                int hash = 17;

                hash *= 23 + ApplicationName.GetHashCode();
                hash *= 23 + ApplicationSystemId.GetHashCode();
                hash *= 23 + ApplicationVersion.GetHashCode();
                hash *= 23 + ContentDescription.GetHashCode();
                hash *= 23 + Copyright.GetHashCode();
                hash *= 23 + Corporation.GetHashCode();
                hash *= 23 + CorporationAddress.GetHashCode();
                hash *= 23 + Filename.GetHashCode();
                hash *= 23 + Language.GetHashCode();
                hash *= 23 + SourceCopyright.GetHashCode();
                hash *= 23 + SourceDate.GetHashCode();
                hash *= 23 + SourceName.GetHashCode();
                hash *= 23 + TransmissionDate.GetHashCode();

                return(hash);
            }
        }