Ejemplo n.º 1
0
 public override int GetHashCode()
 {
     unchecked {
         var hashCode = (AssetNum != null ? AssetNum.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (SiteId != null ? SiteId.GetHashCode() : 0);
         return(hashCode);
     }
 }
        public override int GetHashCode()
        {
            int hash = 1;

            if (entityId_ != null)
            {
                hash ^= EntityId.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (CardProcessor != 0)
            {
                hash ^= CardProcessor.GetHashCode();
            }
            if (CardAgreement.Length != 0)
            {
                hash ^= CardAgreement.GetHashCode();
            }
            if (LicenseId != 0)
            {
                hash ^= LicenseId.GetHashCode();
            }
            if (SiteId != 0)
            {
                hash ^= SiteId.GetHashCode();
            }
            if (DeviceId != 0)
            {
                hash ^= DeviceId.GetHashCode();
            }
            if (Username.Length != 0)
            {
                hash ^= Username.GetHashCode();
            }
            if (Password.Length != 0)
            {
                hash ^= Password.GetHashCode();
            }
            if (ServiceURI.Length != 0)
            {
                hash ^= ServiceURI.GetHashCode();
            }
            if (DebugLoggingEnabled != false)
            {
                hash ^= DebugLoggingEnabled.GetHashCode();
            }
            if (PorticoDeveloperId.Length != 0)
            {
                hash ^= PorticoDeveloperId.GetHashCode();
            }
            if (PorticoVersionNumber.Length != 0)
            {
                hash ^= PorticoVersionNumber.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 3
0
        public override int GetHashCode()
        {
            if (SeasonNumber.HasValue && EpisodeNumber.HasValue)
            {
                return(31 * SeasonNumber.Value + EpisodeNumber.Value);
            }

            return(SiteId.GetHashCode());
        }
Ejemplo n.º 4
0
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         int hash = 17;
         // Suitable nullity checks etc, of course :)
         hash = hash * 23 + Id.GetHashCode();
         hash = hash * 23 + SiteId.GetHashCode();
         return(hash);
     }
 }
Ejemplo n.º 5
0
 public override int GetHashCode()
 {
     unchecked {
         int hashCode = (OrgId != null ? OrgId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (UserProfile != null ? UserProfile.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (SiteId != null ? SiteId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (User != null ? User.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (SchemaId != null ? SchemaId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Mode != null ? Mode.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Platform != null ? Platform.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Environment != null ? Environment.GetHashCode() : 0);
         return(hashCode);
     }
 }
Ejemplo n.º 6
0
 public override int GetHashCode()
 {
     unchecked {
         int hashCode = (OrgId != null ? OrgId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (SiteId != null ? SiteId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (User != null ? User.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ApplicationLookupContext != null ? ApplicationLookupContext.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Mode != null ? Mode.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Platform != null ? Platform.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Environment != null ? Environment.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Module != null ? Module.GetHashCode() : 0);
         return(hashCode);
     }
 }
 public override int GetHashCode()
 {
     return(WebId.GetHashCode() ^ SiteId.GetHashCode());
 }