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