Example #1
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 (PageviewstatisticsTrackingurl != null)
         {
             hashCode = hashCode * 59 + PageviewstatisticsTrackingurl.GetHashCode();
         }
         if (PageviewstatisticsTrackingscriptEnabled != null)
         {
             hashCode = hashCode * 59 + PageviewstatisticsTrackingscriptEnabled.GetHashCode();
         }
         return(hashCode);
     }
 }
Example #2
0
        /// <summary>
        /// Returns true if ComDayCqWcmCoreStatsPageViewStatisticsImplProperties instances are equal
        /// </summary>
        /// <param name="other">Instance of ComDayCqWcmCoreStatsPageViewStatisticsImplProperties to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ComDayCqWcmCoreStatsPageViewStatisticsImplProperties other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     PageviewstatisticsTrackingurl == other.PageviewstatisticsTrackingurl ||
                     PageviewstatisticsTrackingurl != null &&
                     PageviewstatisticsTrackingurl.Equals(other.PageviewstatisticsTrackingurl)
                     ) &&
                 (
                     PageviewstatisticsTrackingscriptEnabled == other.PageviewstatisticsTrackingscriptEnabled ||
                     PageviewstatisticsTrackingscriptEnabled != null &&
                     PageviewstatisticsTrackingscriptEnabled.Equals(other.PageviewstatisticsTrackingscriptEnabled)
                 ));
        }